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

Call transaction

Former Member
0 Likes
1,687

Hi

I need to go to the transaction KOB1 from my program and populate the select options parameter for all the orders.

How is this possible?

In call transaction we can use set parameter...But this is only for a single value

How can i send multiple values to that screen?

10 REPLIES 10
Read only

MarcinPciak
Active Contributor
0 Likes
1,416

Using


CALL TRANSACTION ta USING bdc_tab ... 

Regards

Marcin

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,416

You can use fm ABAP4_CALL_TRANSACTION

Check the tables parameters, you can use parameter USING_TAB

Read only

0 Likes
1,416

Have u used it before?

I dont think multiple values can be passed

Read only

0 Likes
1,416

its same like calling a bdc transaction with bdcdata.

Just do a recording in SHDB for you transaction with sample data and populate the table as same in the recording.

Read only

0 Likes
1,416

Yeah using a BDC this can be done , but i dont want to use a BDC.

If you record in SHDB we will get the screen field names but not the parameter id's

Read only

0 Likes
1,416

I dont think that you can pass multiple values using parameter ID.

Read only

Former Member
0 Likes
1,416

hi,

You can use SUBMIT ...

check this link

thanks

Read only

0 Likes
1,416

The problem with that submit program is that incase of KOB1, the selection screen is slightly different when you run the program that when u run the transacrion which is not desired.

Read only

0 Likes
1,416

hi,

you can do somtihing like

SUBMIT RKAEP000 AND RETURN

WITH P_TCODE = 'KOB1'

WITH AUFNR IN SO_AUFNR

WITH KSTAR IN SO_KSTAR

WITH R_BUDAT IN SO_BUDAT

WITH BUKRS IN SO_BUKRS

USING SELECTION-SCREEN '110'

WITH P_DISVAR EQ 'DBW' sign 'I' .

Please see this link

Read only

Former Member
0 Likes
1,416

Hi Dexter ,

You need to populate Ranges Table for this and pass this ranges table to Call Transaction.

And instead of using Call transaction I will suggest you use SUMBIT.

Consider the following Example :

RANGES : r_vbeln FOR jksddemand-vbeln.

  LOOP AT it_data INTO wa_data.
    r_vbeln-sign = 'I'.
    r_vbeln-option = 'EQ'.
    r_vbeln-low = wa_data-vbeln.
    APPEND r_vbeln.
  ENDLOOP.

  SUBMIT rjksdordergen AND RETURN WITH vkorg IN vkorg
                                  WITH vtweg IN vtweg
                                  WITH spart IN spart
                                  WITH contra IN r_vbeln
                                  WITH doc_con IN r_doc_con
                                  WITH issue IN matnr
                                  WITH doc = 'JTA'
                                  WITH testrun = ''
                                  WITH success = 'X'
                                  VIA SELECTION-SCREEN.

Where rjksdordergen is the program associated with thransaction JKSDORDER01 . So instead of calling this transaction , I am calling the program associated this tranasaction.

Hope this will help you.

Please revert to me if you need more help in this.

Regards,

Nikhil