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

How to transfer multiple values using Set Parameter ID..?

Former Member
0 Likes
3,300

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.

1 ACCEPTED SOLUTION
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,960

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

4 REPLIES 4
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,961

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

Read only

0 Likes
1,960

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.

Read only

Former Member
0 Likes
1,960

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.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,960

DId you try to use report to report interface (search SCN for FM starting with RSTI) ?


Regards,

Raymond