‎2014 Nov 06 11:01 AM
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
‎2014 Nov 06 10:13 PM
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
‎2014 Nov 06 12:03 PM
‎2014 Nov 06 12:15 PM
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
‎2014 Nov 06 1:32 PM
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
‎2014 Nov 06 10:13 PM
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
‎2014 Nov 06 11:53 PM
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
‎2014 Nov 07 8:07 AM
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
‎2014 Nov 07 8:15 AM
Hi Adithya,
Thanks for your reply. So you are saying to use CALL TRANSACTION using BDC instead of submit?
Thanks & Regards,
Priya
‎2014 Nov 07 9:30 AM
Yes Priya; try to use CALL Transaction J1I5 instead of submit program directly
‎2014 Nov 07 9:46 AM
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
‎2014 Nov 07 9:48 AM
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
‎2014 Nov 07 10:00 AM
Hi Priya,
Have you done the recording for J1I5 transaction? using shdb.
Thanks & Regards,
Sree
‎2014 Nov 07 10:04 AM
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
‎2014 Nov 07 11:23 AM
‎2014 Nov 07 11:24 AM