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

Navigation from zstdprg program back to selection screen

former_member207873
Participant
0 Likes
1,353

Hi Experts,

1) I have developed a custom program. I have set programmatically to set only list box visible in the inital selection screen display.

2) Now according to list box selection I am showing the corresponding selection screen blocks.(Invoice, Account and Stock)

3) And for the third list box item (Stock) i am calling another program using submit statement.

   (SUBMIT ZRM07MLBD VIA SELECTION-SCREEN AND RETURN)

4) When returning from the selection screen of ZRM07MLBD  I need to have the selection screen as shown in the first picture.(Only list box selection)

   But it is showing like the below snapshot.

Both the selection screen blocks for (Invoice and Accounts )are coming which should not happen. How to sort out this?

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,321

Seems you forgot  to refresh some field values used in the AT SELECTION-SCREEN OUTPUT to hide unrequired fields.

So either

  • copy the related code in INITIALIZATION in a form, and execute it in INITIALIZATION AND after the submit report
  • Execute a LEAVE TO CURRENT TRANSACTION after the submit report.

Regards,

Raymond

Hi Experts,

1) I have developed a custom program. I have set programmatically to set only list box visible in the inital selection screen display.

2) Now according to list box selection I am showing the corresponding selection screen blocks.(Invoice, Account and Stock)

3) And for the third list box item (Stock) i am calling another program using submit statement.

   (SUBMIT ZRM07MLBD VIA SELECTION-SCREEN AND RETURN)

4) When returning from the selection screen of ZRM07MLBD  I need to have the selection screen as shown in the first picture.(Only list box selection)

   But it is showing like the below snapshot.

Both the selection screen blocks for (Invoice and Accounts )are coming which should not happen. How to sort out this?

4 REPLIES 4
Read only

PeterJonker
Active Contributor
0 Likes
1,321

So you have a selection screen where you have the list box and if a user selects stock you call another program and then want to show the selection screen as it was before you called the program.

Why do you want to return to selection screen ? Are you calling this other program to get values for your selection screen ?

Otherwise I would say, don't call the other program. Or else call it in your START-OF-SELECTION event

It is not clear what you want to achieve. Can you elaborate a little bit more ?

Read only

0 Likes
1,321

Hi Peter,

The purpose of coming back is that if user wants to select invoice or account he has to come back. Only for stock it is calling another program.

Thanks.

Read only

0 Likes
1,321

OK, maybe you can assign a transaction code and call the same program again with call transaction.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,322

Seems you forgot  to refresh some field values used in the AT SELECTION-SCREEN OUTPUT to hide unrequired fields.

So either

  • copy the related code in INITIALIZATION in a form, and execute it in INITIALIZATION AND after the submit report
  • Execute a LEAVE TO CURRENT TRANSACTION after the submit report.

Regards,

Raymond