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 using bdc

Former Member
0 Likes
569

Dear friends,

I have a program displaying the alv list report,

by selecting the line in the alv list report, i need to call another tranaction

and the values in the alv list is to be populated in the new transaction fields.

i have to use Call Transaction using bdc,

I am using the below subroutine but this only displaying only the transaction, and not populating the value in the fields.

instead of using this CALL TRANSACTION 'IH10' and SKIP FIRST SCREEN. I need to use CALL TRANASCTION USING BDC.

How to use this

FORM zuser_command USING p_ucomm TYPE sy-ucomm

p_ls_selfield TYPE slis_selfield.

DATA: v_lisel TYPE sylisel.

v_lisel = sy-lisel.

CALL TRANSACTION 'IH10' and SKIP FIRST SCREEN.

ENDFORM. "zuser_command

4 REPLIES 4
Read only

LucianoBentiveg
Active Contributor
0 Likes
525

You need to use a SUBMIT to report RIEQUI20 instead CALL TRANSACTION.

Regards.

Read only

Former Member
0 Likes
525

Hi,

you need to use some thing like this...

EQN is the parameter ID for the equipment number.


<b>set parameter id 'EQN' field rs_selfield-value.
CALL TRANSACTION 'IH10' and SKIP FIRST SCREEN.</b>

Regards

Vijay

Read only

0 Likes
525

And also you need to use conversion routine if requires.

data: v_equnr type equnr.
v_equnr =  rs_selfield-value.


CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
  EXPORTING
    INPUT         = V_EQUNR
 IMPORTING
   OUTPUT        = V_EQUNR.
set parameter id 'EQN' field v_equnr.
CALL TRANSACTION 'IH10' and SKIP FIRST SCREEN.

Regards

vijay

Read only

Former Member
0 Likes
525

HII

Try this

call transaction 'IH10' using bdcdata update 's' mode 'a' messages

into bdcmsgcoll.

if unable to solve your problem plzz paste your code

regards

Naresh