on 12-04-2007 12:23 PM
Hi All,
I am trying to make a GetList Bapi Wrapper and I want to fill Parameter: BapiRet2 whenever there is an error ..
For that I am using BALW_BAPIRETURN_GET2, but whenever I execute the program it kinda goes into a dump with the following error:
<b>InCorrect Parameter with Call Function.
When calling the function Module one of the parameters was not specified.</b>
My Simple code is:
SELECT * FROM ZRMDELHEADER INTO TABLE DEL where orderid = '1'.
data wa like return.
If sy-subrc <> 0.
CALL FUNCTION 'BALW_BAPIRETURN_GET1'
EXPORTING
TYPE = 'E'
CL =
NUMBER =
PAR1 = ' '
PAR2 = ' '
PAR3 = ' '
PAR4 = ' '
LOG_NO = ' '
LOG_MSG_NO = ' '
IMPORTING
BAPIRETURN = wa
.
APPEND wa to return.
endif.
Please help.
Ankur
Hi Ankur,
You need to pass the TYPE , CL and number. These 3 are mandatory parameters. PAR1-4 are optional based on your message.
E.g.
call function 'BALW_BAPIRETURN_GET1'
exporting
type = 'E'
cl = 'MEREP_SAMPLE_APPL1'
number = '004'
importing
bapireturn = lds_return.
move-corresponding lds_return to return.
Regards
Ajith
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
CL is the message class. Message class can have many messages. The nubmer shows which is the message in the class.
Check the documentation for message class for more details
http://help.sap.com/saphelp_nw04/helpdata/en/d1/801b3e454211d189710000e8322d00/content.htm
Regards
Ajith
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.