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

How to handle warning messages while using SUBMIT

Former Member
0 Likes
5,616


Hi All,

      I am calling transaction J1I5 in my ZProgram using SUBMIT statement. But I am getting a warning message in between and if press 'ENTER' it goes to next screen and there I need to check a checkbox and then execute the report in J1I5. How can I do this. If there is no warning I able to execute the report but in case of warnings I am not able to do that. Please help how can I call the transaction J1I5 in my ZPROGRAM and execute it.

Thanks & Regards,

Priya

1 ACCEPTED SOLUTION
Read only

3,968

Hi Priya,

Do not use submit statement using selection screen because it will called selection screen while executing the program.

Instead use submit with selection-table rspar. Populate RSPAR table and execute the same.

Regards,

Santosh

14 REPLIES 14
Read only

Former Member
0 Likes
3,968

This message was moderated.

Read only

Former Member
0 Likes
3,968

Hi Priya,

Are you calling tranaction code J1I5 using submit statement? instead of this call the program using submit statement like below.

   submit J_1IREGSN via selection-screen and return.

please try it.

Thanks,

Sree

Read only

0 Likes
3,967

Hi Polu,

I am using SUBMIT statement exactly the same way as you mentioned but when a warning appearings the report does not get executed.

           SUBMIT j_1iregsn USING SELECTION-SCREEN '1000'
           WITH SELECTION-TABLE rspar_tab
           AND RETURN.

Based on J1I5 I need to post excise invoice in J1IEX_P. Since this program  j_1iregsn is failing I could not post excise invoice. If manually I execute  j_1iregsn, when I receive this warning message, I press ENTER twice and report gets executed displaying an ALV. Then there is a check box on the side which I need to tick to select the record for processing. How can I do these steps. Please the screenshot below:

Thanks & Regards,

Priya

Read only

3,969

Hi Priya,

Do not use submit statement using selection screen because it will called selection screen while executing the program.

Instead use submit with selection-table rspar. Populate RSPAR table and execute the same.

Regards,

Santosh

Read only

0 Likes
3,967

Hi Santosh,

          I am using SUBMIT statement as

SUBMIT j_1iregsn  WITH SELECTION-TABLE rspar_tab
           AND RETURN.
 

still I am having problems. An information message is displayed stating 'Already executed for period and register' and only I press enter it will return to the calling zprogram.  How can I suppress this message. Please help.

Thanks & Regards,

Priya

Read only

0 Likes
3,967

As far as i know you cannot suppress the warning via the submit statement.
If your report is assigned to a transaction you should be able to use 'Call Transaction' instead of submit. This has 'Mode' as 'E'. which will  stop program only if you encounter an error.

Seems like the program J_1IREGSN is linked to tcode J1I5. Use that

Read only

0 Likes
3,967

Hi Adithya,

           Thanks for your reply. So you are saying to use CALL TRANSACTION using BDC instead of submit?

Thanks & Regards,

Priya

Read only

0 Likes
3,967


Yes Priya; try to use CALL Transaction J1I5 instead of submit program directly

Read only

0 Likes
3,967

Hi Priya,

Actually call transaction with messages is possible only when we use bdc options so if you do the recording for that transaction then its possible to use call transaction with messages.

Thanks & Regards,

Sree

Read only

0 Likes
3,967

Hi Aditya,

      I tried CALL Transaction using BDC but I am not able to get the OK_CODE for executing. When I execute the program the program stops at J1I5 transaction and I manually need to execute the transaction and come back to the program. Please tell how I can overcome this?

Thanks & Regards,

Priya


Read only

0 Likes
3,967

Hi Priya,

Have you done the recording for J1I5 transaction? using shdb.

Thanks & Regards,

Sree

Read only

0 Likes
3,967

Hi Polu,

         Actually how I can get the OK_CODE  values for a REPORT program. BDC is normally used for Module pool programs where you have different screens right? I am stuck with the program when I use BDC since its a report program. If I use SUBMIT if there is no information message the program executes properly but if I there is a warning message the program stops at the transaction J1I5. I think BDC cannot be used for this and we need to find the method of capturing errors for report program. Please someone help.

Thanks & Regards,

Priya

Read only

0 Likes
3,967

Issue solved used BDC instead of SUBMIT.

Read only

0 Likes
3,967

Thanks all for your help!