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

B

Former Member
1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
440

what ever errors ur getting while populating ztable u have to capture all the messages into bapi return

3 REPLIES 3
Read only

naimesh_patel
Active Contributor
0 Likes
440

Validate all your intput fields. If you find errores and incorrect data as your input data, fill out the return table with the proper message and all the necessary variables. Here variable means all the used one input data for that message.

Like:

If your input contains the TEST1 as the material so you need to validate this material from MARA.

SELECT MATNR
INTO L_MATNR
FROM MARA
WHERE MATNR = 'TEST1'.  " <<your input values
IF SY-SUBRC <> 0.
* FILL THE RETURN TABLE WITH MESSAGE 
* MATERIAL TEST1 NOT FOUND
ENDIF.

You have to check for each object with its master records.

Regards,

Naimesh Patel

Read only

0 Likes
440

Hi Naimesh,

Thanks 4ur response, Please help if you have any sample coding.

Regards,

SB

Read only

Former Member
0 Likes
441

what ever errors ur getting while populating ztable u have to capture all the messages into bapi return