Tuesday, March 10, 2020

How to create QR code IN SAP ABAP.


QR Code create in SAP ABAP step by step.


QR Code create in step by step.

GO TO:T- CODE SE73
Create QR Code
























Create style for QR Code
GO To T-CODE:-Smartstyles
Create Style for QR Code



Declare QR code in smartforms

Go To T-CODE:- smartforms


 





Monday, March 9, 2020

BAPI BAPI_GOODSMVT_CREATE Program Example IN SAP ABAP.


BAPI BAPI_GOODSMVT_CREATE Program Example.




BAPI BAPI_GOODSMVT_CREATE  Create Example.

* Declare Structures for BAPI
  data: gm_header1  type bapi2017_gm_head_01,
        gm_code1    type bapi2017_gm_code,
        gm_headret1 type bapi2017_gm_head_ret,
        gm_item1    type table of bapi2017_gm_item_create with header line.
  data: gm_return1  type bapiret2 occurs 0.
  data: gm_retmtd1  type bapi2017_gm_head_ret-mat_doc.

  clear: gm_return1, gm_retmtd1. refresh gm_return1.


*Declare BAPI header data.
  gm_header1-pstng_date = sy-datum.
  gm_header1-doc_date   = sy-datum.
  gm_code1-gm_code      = '06'.                              " MB11

*  551 movement type to table
  clear gm_item.
  move:  '551'        to gm_item1-move_type ,
         '000000000040001234' to gm_item1-material,
         '2'        to gm_item1-entry_qnt,
         'EA'       to gm_item1-entry_uom,
         '0006'     to gm_item1-plant,
         '4010'     to gm_item1-stge_loc,
         '202'      to gm_item1-move_reas.

* Determine cost center per plant
  case xresb-werks.
    when '0011'.
      move '0000041431' to gm_item1-costcenter.
    when '0012'.
      move '0000041631' to gm_item1-costcenter.
    when '0013'.
      move '0000041734' to gm_item1-costcenter.
    when '0014'.
      move '0000041836' to gm_item1-costcenter.
  endcase.

  append gm_item1.

* Call goods movement BAPI
  call function 'BAPI_GOODSMVT_CREATE'
       exporting
            goodsmvt_header  = gm_header1
            goodsmvt_code    = gm_code1
       importing
            goodsmvt_headret = gm_headret1
            materialdocument = gm_retmtd1
       tables
            goodsmvt_item    = gm_item1
            return           = gm_return1.


   call function 'BAPI_TRANSACTION_COMMIT'
       exporting
            wait = 'X'.

Monday, March 2, 2020

OData related question in SAP ABAP.

OData related question  in SAP ABAP.


OData question below details.

1.What is OData? Explain the advantages of OData?
2.What is the transaction code for creating OData project?
3.Explain the folders in OData project?
4.Which OData version do you use?
5.What is Entity type and Entityset? What is the difference betweenthem?
6.Explain complex type?
7.Mention difference between Entity type and Complex type?
8.What is Function import? When should we opt for function import?
9.What is Association and Association set?
10.What is referential constraint? Is it mandatory to create referentialconstraints?
11.What is navigation property? What is its use?
12.What are the classes created by framework when runtime artifacts aregenerated?
13.What are MPC, MPC Extension class & DPC, DPC Extension class?
14.What is Metadata? How to download Metadata?
15.What is the default format for data in Http response body?
16.Can we query or retrieve metadata in JSON format?
17.What will happen if logic is implemented in Model provider class &Data provider class and regenerate the runtime objects?
18.What is with Mapping and without mapping for BAPI & RFC in OData?
19.What are CRUD methods?
20.What is the difference between GET_ENTITY & GET_ENTITYSET?
21.Mention different status codes you have came across in OData?
22.What are the status codes for Create, Update, Delete and Getoperations?
23.Will the data return to HTTP Response body, if ER_ENTITY ofUPDATE_ENTITY is populated with value?
24.How to make configuration for calling a service in a system?
25.List some query options in OData?
26.What are skip & top query?
27.What is the query for Function Import?
28.In which method do you implement logic for function import?
29.What are the parameters of EXECUTE_ACTION method?
30.How to pass the GUID value in the Query?