‎2014 Mar 21 7:06 AM
Hi guys,
I'm developing a sap program. Since I'm quite new to abap, I need some help.
What I intend to do is to show relevant slips when the user clicks an ALV cell.
I'm calling Kob1 transaction after setting parameter ID.
The code is like below :
------------------------------------------------------------------------------------
SET PARAMETER ID 'CAC' FIELD pa_kokrs.
SET PARAMETER ID 'KS7' FIELD lv_lowdate.
SET PARAMETER ID 'KS8' FIELD lv_highdate.
SET PARAMETER ID 'ANR' FIELD aufnr.
CALL TRANSACTION 'KOB1' AND SKIP FIRST SCREEN.
------------------------------------------------------------------------------------
The problem is, the input field with ID 'ANR' must accept multiple values.
(You can input multiple values in kob1 pressing this button : )
Aufnr is a select-option that contains relevant order numbers, like below :
In brief : I need to transfer multiple LOW values to the field having memory ID 'ANR'.
Can I do this using 'set parameter ID'? Or is it a wrong approach?
Help is much appreciated. Thank you in advance!
p.s) I decided not to use standard BDC recording(shdb) because the selection screen must be skipped.
Unfortunately it's not possible to use 'USING BDCDATA' with 'AND SKIP FIRST SCREEN' statement.
‎2014 Mar 21 7:19 AM
You can not use SUBMIT as it has a pop up for controlling area as suggested earlier. I think you will need to create BDC recording till the point where you want to execute
Nabheet
‎2014 Mar 21 7:19 AM
You can not use SUBMIT as it has a pop up for controlling area as suggested earlier. I think you will need to create BDC recording till the point where you want to execute
Nabheet
‎2014 Mar 23 6:07 AM
Thank you, Nabheet. I think you're right.
But using BDC recording I can't pass the selection screen :-X
Maybe I have to develop a custom report program.
‎2014 Mar 21 7:25 AM
You can pass ur va;lues to input field into int table rspar and then usinf SUBMIT statement, you can pass all your input field to program and run the it.
You dont need to set parameter ID for all IDs just pass them to int table rspar and call usinf SUBMIT, it will worjk
DATA: rspar TYPE TABLE OF rsparams,
wa_rspar LIKE LINE OF rspar.
IF s_cmp_cd IS NOT INITIAL.
wa_rspar-selname = 'S_CMP_CD'.
wa_rspar-kind = 'S'.
wa_rspar-sign = 'I'.
wa_rspar-option = 'BT'.
wa_rspar-low = s_cmp_cd-low.
wa_rspar-high = s_cmp_cd-high.
APPEND wa_rspar TO rspar.
ENDIF.
SUBMIT zmm_ent_hierarchy1 WITH SELECTION-TABLE rspar AND RETURN.
‎2014 Mar 21 3:01 PM