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

Bapi-Function Module

Former Member
0 Likes
667

Hi all,

I am using function Module i.e.,'BAPI_ACC_DOCUMENT_POST' to upload the data for F-02.After posting it sucessfully i am getting a message,my problem is i need to do modifications in this message.

Can anybody tell me how to modify this message or where this message is stored.

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
642

hi you will get the bapireturn table from the bapi and you can pass to some internal table with the same structure and you can midify it with the custom message...by using the modify statement..

6 REPLIES 6
Read only

Former Member
0 Likes
643

hi you will get the bapireturn table from the bapi and you can pass to some internal table with the same structure and you can midify it with the custom message...by using the modify statement..

Read only

0 Likes
642

Hi Venkat,

In this message for document number i have to take out leading Zero.

Can u tell me how to do it.

Thanks.

Read only

0 Likes
642

dada,

use this FM,

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
                 EXPORTING
                      input  = rs_selfield-value
                 IMPORTING
                      output = v_fbelnr.

Pls reward appropriate if your problem is solved.

Amit.

Read only

0 Likes
642

loop at it_return .

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'

EXPORTING

input = it_return-docnum

IMPORTING

output = it_return-docnum.

modify it_return transporting docnum.

endloop.

Read only

Former Member
0 Likes
642

Hi,

This is standard BAPI, so without access key you cant change this. Better you create zcopy and modify as you wish.

Regards,

Harish

Read only

Former Member
0 Likes
642

Dada,

first carefully find from where that message is coming than copy this bapi into some zbapi and use this and change that message which you already find above.

Amit.