cancel
Showing results for 
Search instead for 
Did you mean: 

How to Pass Dynamic Selection Field in SAP ABAP Submit Statement?

SANDEEP_077
Explorer
0 Kudos
365

I am working on a custom program where I use the SUBMIT statement to call the F.01 transaction. I need to pass a dynamic selection (Profit Center) as a parameter, but I'm facing issues when trying to pass the values.

I’ve tried the following code, which works for standard parameters but not for dynamic selections:

LOOP 
AT s_values INTO DATA(lv_prctr_value).
  CLEAR ls_dynsel.
  ls_dynsel-selname 'PRCTR'.            
  ls_dynsel-kind    'S'.             
  ls_dynsel-sign    'I'.             
  ls_dynsel-option  'EQ'.        
  ls_dynsel-low     lv_prctr_value.  
  APPEND ls_dynsel TO lt_dynsel.
ENDLOOP. 


SUBMIT rfbila00
  WITH sd_ktopl-low lv_ktopl
  WITH sd_bukrs-low lv_bukrs
  WITH bilavers '1000'
  WITH bilaspra lv_spras
  WITH bilbjahr lv_report_year
  WITH b-monate =  s_bilabmon
  WITH bilvjahr lv_compare_year
  WITH v-monate s_bilavmon

  WITH SELECTION-TABLE lt_dynsel
  EXPORTING LIST TO MEMORY
  AND RETURN.

I got this profit center field name using technical properties of the field. But i pass 'PRCTR' the values are not loading in it 

How can I pass multiple Profit Center values in dynamic selections when using the SUBMIT statement?


Any insights or examples on handling dynamic selections with SUBMIT would be greatly appreciated. Thank you!"

View Entire Topic
Lakshmipathi
Active Contributor
0 Kudos
i must have an overall status of 'B' and not 'C' in VBUK-GBSTK

Why? Ideally for such multiple items, you should check in VBUP but you were checking for header status. For some other reason, if you feel that the status is wrong, then try executing report SDVBUK00 in development and test it thoroughly before executing in production client.

wafi_farreedun
Explorer
0 Kudos
Thank you for your response lakshmipathi.ganesan . In the case of partial delivery, shouldn't the Overall processing status of document (VBUK-GBSTK) be 'B' instead of 'C' since it has not been fully delivered?