2008 Jun 24 3:38 PM
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
2008 Jun 24 3:40 PM
Go and put your BAPI in se37 and see what parameters it requires.
Amit.
2008 Jun 24 3:41 PM
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
2008 Jun 24 3:48 PM
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.
2008 Jun 24 3:54 PM
hi,
i need to know only one thing.
how we will create a internal table for corresponding bapi
2008 Jun 24 3:57 PM
Define your itab as same type as tables define in BAPI in tables tab.
Amit.
2008 Jun 24 4:28 PM
It would be the best for you to learn the fundamental basics of ABAP before you try to call a BAPI.
2008 Jun 24 5:24 PM
ok i have a bapi BAPI_BANK_GETLIST in abap trail version
how to use this bapi to uplaod data
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |