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

Detail text -Module pool programming

Former Member
0 Likes
537

Hi friends,

i am doing module pool programming . in that my screen no is 9003. user will enter input .when issue button is pressed , then system takes the information and will process ,after processing it will show either error message or successful message depends on process output.

if it is successful message ,then no problem.

while processing ,BAPI_PO_CHANGE function module returns messages, if it is list of error message.i will give simple error message, on seeing that user should be able to see all error messages that fn. module returns. for that i can give push button on 9003 screen ,if user presses that button it should display all error message that is in return internal table of function module..

how to achieve it? please if any one knows ,help me..

regards,

diana,.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
486

Hi Diana,

There are two options :

1.Pass the internal table data with errors to this function module POPUP_WITH_TABLE_DISPLAY and display when the button is pressed.

2.Export the internal table data with errors to memory and import the same use this in alv report and call the same when button is pressed.

As of standard first option is good one.

For any clarifications : smspearl at gmail

Regards,

Madhu.

3 REPLIES 3
Read only

former_member787646
Contributor
0 Likes
486

Hi

Try the following code..

DATA: WA_RETURN TYPE BAPIRET2.

LOOP AT IT_RETURN INTO WA_RETURN.

WRITE:/ WA_RETURN-TYPE, WA_RETURN-NUMBER, WA_RETURN-FIELD, WA_RETURN-MESSAGE.

ENDLOOP.

SUPPRESS DIALOG.

LEAVE TO LIST PROCESSING.

Hope it helps.

Murthy

Read only

Former Member
0 Likes
487

Hi Diana,

There are two options :

1.Pass the internal table data with errors to this function module POPUP_WITH_TABLE_DISPLAY and display when the button is pressed.

2.Export the internal table data with errors to memory and import the same use this in alv report and call the same when button is pressed.

As of standard first option is good one.

For any clarifications : smspearl at gmail

Regards,

Madhu.

Read only

Former Member
0 Likes
486

Hi Madhu,

Thank u so much for your timely help.

regards,

diana.