cancel
Showing results for 
Search instead for 
Did you mean: 

smartform from a custom screen

Former Member
0 Kudos

hi Friends,

i have created a custom screen. form this screen i have to call different transactions(mb21,mb22). this is done. From the same screen i have following fields,

Order number _________ to _________

the above field shold be decalred as select-options with multiple selections. is it possibel to do so in the custom screen. below this i have following fields

no.of

copies Form Printer

__ picking list ____

__ deliverynote ____

__ driving plan ____

PUSHBUTTON PRINT.

now my requirement is, When the user enter a desired number inthe number of copies field against the desired form and clicks on the PRINT push button the given no.of copies should be printed.

For example the user enters 2 for picking list, 4 for delivery note and 3 for driving plan enters the printer name and click on PRINT, respective number of forms should be printed.

All the print programs of these three layout has a selection screen where the input is either reservation number or purchsing document number

all these forms and print programs were developed.

Please provide me with suitable solution. Any help will be highly appreciated and rewarded.

Accepted Solutions (0)

Answers (1)

Answers (1)

naimesh_patel
Active Contributor
0 Kudos

To create a selection screen you can use this:

SELECTION-SCREEN: BEGIN OF SCREEN '0100'.
SELECT-OPTIONS: S_VBELN FOR VBAK-VBELN.
SELECTION-SCREEN: END  OF SECREEN '0100'.

And whenever you want to call this screen, you can call it like:

CALL SELECTION-SCREEN 0100.

Now, when user presses the button for the print, you can submit the programs which are printing the different output.

Like:

SUBMIT ZPRINT_PICK WITH P_VBELN = ITAB-VBELN.

Regards,

Naimesh Patel