‎2008 Jul 31 6:14 AM
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,.
‎2008 Jul 31 7:27 AM
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.
‎2008 Jul 31 6:51 AM
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
‎2008 Jul 31 7:27 AM
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.
‎2008 Jul 31 10:34 AM