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

append bapireturn

Former Member
0 Likes
787

Hi All,

During one RFC FM creation , have some issue with BAPIRETURN.

i have data validaiton , for that i have to capture 4 messages in  various cases.

im using BAPI RETURN as export parameter.

im getting all messages in wa_return-message-v();;;

But now i have to append all in my result bapireturn.

while in debugging i can see all messages under wa_return.

but as a result message im getting only one.

im not able to append directly .

please give me possible solution to come out of it..

Regards

Hi All,

During one RFC FM creation , have some issue with BAPIRETURN.

i have data validaiton , for that i have to capture 4 messages in  various cases.

im using BAPI RETURN as export parameter.

im getting all messages in wa_return-message-v();;;

But now i have to append all in my result bapireturn.

while in debugging i can see all messages under wa_return.

but as a result message im getting only one.

im not able to append directly .

please give me possible solution to come out of it..

Regards

3 REPLIES 3
Read only

Former Member
0 Likes
706

Hi,

Are you appending the messages like mentioned below.

call function 'BALW_BAPIRETURN_GET2'
     exporting
       type   = pv_msgty
       cl     = pv_msgid
       number = pv_msgno
       par1   = lv_msgv1
       par2   = lv_msgv2
       par3   = lv_msgv3
       par4   = lv_msgv4
     importing
       return = pt_return.
   append pt_return.

Read only

former_member187748
Active Contributor
0 Likes
706

Hi Suma,

i will sujjest you to write your code logic as shown below, change it as per as your requirements.

DATA : text(100TYPE c.




CONCATENATE wa_return-message-v();;;

INTO it_error-text

       SEPARATED BY ' '.

       APPEND it_return.

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
706

Create your return parameter under tables or use a table type so that it becomes internal table. Append the message to it.