on 11-13-2006 11:12 AM
Hi all
I would like to know how to access the RETURN message from the BAPI
In one of our MAM implementation our client has a customized goods issue transaction so when the goods are ordered from the mobile for a maintenance activity the corresponding response from the backend(R/3) is sent in MAM25_001 return table.
Thanks
Gopi
Hi Gopi,
After each BAPI call there is SyncBO exits available. This is available in Downloader as well as the Uploader function modules.
Goto the Function Group Z_MEREP_GEN_<SyncType>_<SyncBO Name>
Under this there will be 5 function Modules (if >SP18). or 4 Function Modules (if <SP18).
If you goto the FM Z_MEREP_GEN_T03_____<SyncBO Name>. Here after getlist and getdetail BAPI we can find exits.
To enter coding in SyncBO Exits goto MEREP_SBUILDER. Under the Menu SYNCBO goto 'Maintain Exits'. Then you get a popup asking which FM needs to be modified. Then select Downloader (t02) or uploader (t03). Then you get a screen which indicates where the Exits are present. Goto the exit after the BAPI call and enter your custom coding.
Thanks...
Preetham S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gopi,
My accessing thru MAM code you mean is it on the client code ???.
If yes, all the return messages are not sent to the client. It is either a Success or Error or Conflict messages that are sent to the client. So if you are looking at sending a particular message. There must coding done on ther Server Side (ABAP) and as well as the client side. On the server side I have already mentioned where the coding needs to be done. I guess you need to populate the outbox with new message which needs to be handled on the client. On the client side I am not sure what needs to be done for your requirement.
Thanks...
Preetham S
Hi Gopi,
I am not sure whether i understand the quiry properly or not. I hope the following will help you:
1)Take one scenario, customer syncbo, where we need to create customer, when the create BAPI is invoked, it will get executed and gives a messege saying that
"customer is sucessfully created"(These messeges can be modified/create as our wish) so
If this is ur requirement.
We need to create a messege class and call this class in BApi as below
lds_return-message_v1 = 'Customer table'.
lds_return-message_v2 = customerid.
MESSAGE s002(MESSEGE CLASS) WITH space space
INTO gdf_message_dummy .
CALL FUNCTION 'BALW_BAPIRETURN_GET1'
EXPORTING
type = 'E'
cl = 'MESSEGE CLASS'
number = '002'
par1 = lds_return-message_v1
par2 = lds_return-message_v2
IMPORTING
bapireturn = lds_return.
MOVE-CORRESPONDING lds_return TO return.
EXIT.
In this messege class we can create as many messeges as we want, and simple call the messege number..in this case s002 is the messege number.
I hope this will be helpful.
Thanks & Regards,
Karthick
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.