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

BDC - help with passing values

Former Member
0 Likes
1,013

Hi,

The BDC code works fine when the value(3) or any value is hard coded. But it is not working if I use 'RMQAM-AKTIV(p_insty)' where p_insty is the parameter value entered at selection screen. Please let me know how to pass this value.

perform screen using: 'SAPLQPLS' '0100'.

perform field using: 'RMQAM-AKTIV(3)' w1_aktiv,

'BDC_OKCODE' '=WEIT',

'RMQAM-AKTIV(3)' 'X'.

Regards,

bindazme

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
880

If u use like this, it will treat as a screen filed and will not work. Instead concatenate 'RMQAM-AKTIV(' p_insty ')' into v_field and use this field in bdc like

perform field using: v_field w1_aktiv,

Hi,

The BDC code works fine when the value(3) or any value is hard coded. But it is not working if I use 'RMQAM-AKTIV(p_insty)' where p_insty is the parameter value entered at selection screen. Please let me know how to pass this value.

perform screen using: 'SAPLQPLS' '0100'.

perform field using: 'RMQAM-AKTIV(3)' w1_aktiv,

'BDC_OKCODE' '=WEIT',

'RMQAM-AKTIV(3)' 'X'.

Regards,

bindazme

4 REPLIES 4
Read only

Former Member
0 Likes
881

If u use like this, it will treat as a screen filed and will not work. Instead concatenate 'RMQAM-AKTIV(' p_insty ')' into v_field and use this field in bdc like

perform field using: v_field w1_aktiv,

Read only

Former Member
0 Likes
880

Use this code instead.

data lv_field(30).

concatenate 'RMQAM-AKTIV(' p_insty ')' into lv_field.

perform screen using: 'SAPLQPLS' '0100'.
perform field using: lv_field w1_aktiv,
'BDC_OKCODE' '=WEIT',
lv_field 'X'.

Please mark points if the solution was useful.

Regards,

Manoj

Message was edited by:

Manoj V Kumar

Read only

Former Member
0 Likes
880

The number must be in the string.

data l_field(40) type c,

l_num(2) type c.

write p_insty to l_num left-justified.

concatenate 'RMQAM-AKTIV(' l_num ')' into l_field.

perform field using: l_field w1_aktiv,

Andrew

Read only

Former Member
0 Likes
880

Thanks, it works