Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

how to fill bapi parameters

Former Member
0 Likes
969

how to fill bapi structure

how we know which parameters are available in a bapi

how to fill bapi structure

how we know which parameters are available in a bapi

7 REPLIES 7
Read only

Former Member
0 Likes
929

Go and put your BAPI in se37 and see what parameters it requires.

Amit.

Read only

0 Likes
929

i am not having sap in my system

can you explain with an easy example

also when i see a program what is header data and client data

Read only

0 Likes
929

Vip,

i think its too difficult without SAP you can learn BAPI.

but your wishing toward learning really appriciated.

see i used one bapi like this:

*-Packaging 50 objects at the same time is not possible due to the
*-processing of the commitment interface with Budgetary ledger.
*-The commitment interface cannot handle the updation of multiple
*-documents at the same time.The process will result in a dump if the
*-PO's are updated in packages.
*-Change the PO
  LOOP AT U_T_EKKO.

*-Suppress the PBET pop-up window by passing the date in advance
    CALL FUNCTION 'FM_UPDATE_DATE_VALUES'
      EXPORTING
        I_FM_UPDATE_DATE = U_T_EKKO-BEDAT.

    CALL FUNCTION 'BAPI_PO_CHANGE'
      EXPORTING
        PURCHASEORDER = U_T_EKKO-EBELN
        POHEADERX     = C_T_HEADERX
      TABLES
        RETURN        = C_T_MESG.

*-Collect the messages
    IF NOT C_T_MESG[] IS INITIAL.
      LOOP AT C_T_MESG WHERE
           NOT TYPE   IS INITIAL AND
           NOT ID     IS INITIAL AND
           NOT NUMBER IS INITIAL.
        C_T_LOG-EBELN = U_T_EKKO-EBELN.
        MOVE-CORRESPONDING C_T_MESG TO C_T_LOG.
        APPEND C_T_LOG.
      ENDLOOP.
      REFRESH C_T_MESG.
    ELSE.
      IF P_TEST IS INITIAL.
        C_T_LOG-EBELN   = U_T_EKKO-EBELN.
        C_T_LOG-TYPE    = 'I'.
        C_T_LOG-NUMBER  = '167'.
        C_T_LOG-ID      = 'FMFG'.
        APPEND C_T_LOG.
      ELSE.
        C_T_LOG-EBELN   = U_T_EKKO-EBELN.
        C_T_LOG-TYPE    = 'S'.
        C_T_LOG-NUMBER  = '168'.
        C_T_LOG-ID      = 'FMFG'.
        APPEND C_T_LOG.
      ENDIF.
    ENDIF.

    REFRESH C_T_MESG.

    IF P_TEST IS INITIAL.
      COMMIT WORK.
    ENDIF.
  ENDLOOP.

Amit.

Read only

0 Likes
929

hi,

i need to know only one thing.

how we will create a internal table for corresponding bapi

Read only

0 Likes
929

Define your itab as same type as tables define in BAPI in tables tab.

Amit.

Read only

0 Likes
929

It would be the best for you to learn the fundamental basics of ABAP before you try to call a BAPI.

Read only

0 Likes
929

ok i have a bapi BAPI_BANK_GETLIST in abap trail version

how to use this bapi to uplaod data