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

Dynamic selection with submit program

Former Member
0 Likes
6,288

Hi

I have Zprogram with dynamic selection screen like in FBL5N and next I want to transfer choosen values from it to FBL5N with SUBMIT procedure.

How to do it?

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
2,779

Reading f1 help of submit might help ( check the option "Free selections" )

For retrieving the dynamic screen values from your z program use function RS_REFRESH_FROM_DYNAMICAL_SEL. Then submit the standard one with free selection ( read f1 help or search in SCN ).

4 REPLIES 4
Read only

Former Member
0 Likes
2,779

Hi,

The Approoach should be like

data: iSEL TYPE TABLE OF RSPARAMS.

data: xsel type rsparams.

submit FBL5N

        via selection-screen

                with selection-table isel

                          and return.

Ans based on your Selection screen values.

You'll have to fill the Seltab.

Like

xsel-SELNAME = 'BUDAT'.

xsel-KIND    = 'S'.

xsel-SIGN    = 'I'.

xsel-OPTION  = 'EQ'.

xsel-LOW     = sy-datum.

append xsel to isel.

Please try this and let us know.

Regards,

Amit

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
2,780

Reading f1 help of submit might help ( check the option "Free selections" )

For retrieving the dynamic screen values from your z program use function RS_REFRESH_FROM_DYNAMICAL_SEL. Then submit the standard one with free selection ( read f1 help or search in SCN ).

Read only

0 Likes
2,779

Thanx.

I found resolve in SUBMIT help.

I retrieve values FREE_SELECTIONS_INIT and next SUBMIT WITH FREE SELECTIONS.

Read only

gurunathkumar_dadamu
Active Contributor
0 Likes
2,779

Hi,

call the RFITEMAR is the report for tcode 'FBL5N'

SUBMIT   RFITEMAR

                             

         WITH dd_kunnr-low   s_kunrg-low     (Customer Account)

         WITH dd_kunnr-high s_kunrg-high

         

         WITH dd_bukrs-low   = s_bukrs-low       (Company Code)

         WITH dd_bukrs-low   =  s_bukrs-high

     

          WITH x_norm           = 'X'                          (normal Items)

          AND RETURN.

Regards,

Gurunath Kumar D