2013 Feb 27 5:07 AM
i am getting short dump... i dont where i was wrong ..please help me and give some explanation
types : BEGIN OF ty_bnka,
banks type bnka-banks,
bankl type bnka-bankl,
banka type bnka-banka,
ADDRESS TYPE BAPIADDR1,
END OF ty_bnka.
data : itab type table of ty_bnka,
wa type ty_bnka,
IT_RETURN TYPE BAPIRET2.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = 'D:\practice\ANU.TXT'
HAS_FIELD_SEPARATOR = 'X'
tables
data_tab = itab
.
IF sy-subrc <> 0.exit.ENDIF.
LOOP AT ITAB into WA.
WA-ADDRESS = WA-BANKA.
CALL FUNCTION 'BAPI_BANK_CREATE'
EXPORTING
BANK_CTRY = WA-banks
BANK_KEY = WA-bankl
BANK_ADDRESS = WA-ADDRESS
* BANK_METHOD =
* BANK_FORMATTING =
* BANK_ADDRESS1 =
* I_XUPDATE = 'X'
IMPORTING
* RETURN = it_return
* BANKCOUNTRY =
* BANKKEY =
.
ENDLOOP.
IF IT_RETURN IS INITIAL.
WRITE😕 'bank', WA-BANKA ,'is created succesful'.
ELSE.
WRITE😕 'not succesful'.
ENDIF.
i am getting short dump... i dont where i was wrong ..please help me and give some explanation
types : BEGIN OF ty_bnka,
banks type bnka-banks,
bankl type bnka-bankl,
banka type bnka-banka,
ADDRESS TYPE BAPIADDR1,
END OF ty_bnka.
data : itab type table of ty_bnka,
wa type ty_bnka,
IT_RETURN TYPE BAPIRET2.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = 'D:\practice\ANU.TXT'
HAS_FIELD_SEPARATOR = 'X'
tables
data_tab = itab
.
IF sy-subrc <> 0.exit.ENDIF.
LOOP AT ITAB into WA.
WA-ADDRESS = WA-BANKA.
CALL FUNCTION 'BAPI_BANK_CREATE'
EXPORTING
BANK_CTRY = WA-banks
BANK_KEY = WA-bankl
BANK_ADDRESS = WA-ADDRESS
* BANK_METHOD =
* BANK_FORMATTING =
* BANK_ADDRESS1 =
* I_XUPDATE = 'X'
IMPORTING
* RETURN = it_return
* BANKCOUNTRY =
* BANKKEY =
.
ENDLOOP.
IF IT_RETURN IS INITIAL.
WRITE😕 'bank', WA-BANKA ,'is created succesful'.
ELSE.
WRITE😕 'not succesful'.
ENDIF.
2013 Feb 27 5:51 AM
Hi Swamy,
Please paste the screen shot of the dump here or tell us what exactly is the error message
2013 Feb 27 5:57 AM
i got it bro...........
what i did in that is i didnt pass the structure properly there ...
2013 Feb 27 6:07 AM
Hi Swamy,
In the above code, I just observed you have commented all the importing parameters including the IT_RETURN. Please uncomment an check how it works. But also let us know the error in the dump you are getting
2013 Feb 27 6:21 AM
2013 Feb 27 7:22 AM
Hi,
Its good that you have got the answer. I have not got an opportunity to work on BAPI. Can you share it with me? It would be helpful.
Regards
Purnand
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |