cancel
Showing results for 
Search instead for 
Did you mean: 

Filling the values of BapiRet2

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

AjithC
Employee
Employee
0 Kudos

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

Former Member
0 Kudos

Thanks for the help Ajith...

Mine is working just fine now.

Though can you tell me the significance of 'cl' and 'number'.

Thanks,

Ankur

AjithC
Employee
Employee
0 Kudos

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