4 weeks ago
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!"
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
96 | |
39 | |
6 | |
5 | |
3 | |
3 | |
3 | |
2 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.