on 11-09-2010 7:38 PM
Hello colleagues,
I have a scenary new for me.
I have a data record for upload, and when I synchronize, I need catch status of validation in bapi wrapper .
For example, send from MI to PDA after processing of bapi wrapper create "Data 1: error in the order", or "Data 2: processing" etc.
Then the user will see the information in to PDA for correct the data record bad.
Thanks!
Hi Andreas,
You could use call to function module 'BALW_BAPIRETURN_GET2' within your Create BAPI wrapper to send any error messages based on your logic to identify erroneous records sent by client for creation.
CALL FUNCTION 'BALW_BAPIRETURN_GET2'
EXPORTING
TYPE = LTYPE
CL = LCL
NUMBER = LNUMBER
PAR1 = LPAR1
PAR2 = LPAR2
PAR3 = LPAR3
PAR4 = LPAR4
" LOG_NO =
" LOG_MSG_NO =
" PARAMETER =
" ROW = 0
" FIELD =
IMPORTING
RETURN = BAPIRETURN.
For error messages, you could use the type as "E". These messages are then visible in the Message Monitoring when searched for "Error" messages, so that the data could be corrected and message could be restarted.
Hope this helps.
Best Regards,
Kranti
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Andreas,
You can implement rejection handling at your application to show the status of the record.
If any record is rejected by Backend( BAPI wraper) OR DOE, then DOE sends a rejection message to the client during sync. You application should capture this and show the status on UI.
Similarly if the record is successfully updated in backend and DOE, then DOE sends a confirmation.
For any new record created in client, the status will be "I".
Please refere to the below SDN posts on rejection handling
Regards
Rohith
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.