2007 May 04 11:16 AM
I have a requirement to a set a field value likp-lifex,in transaction VL02N through background through BDC.I will use this field value in a select query for checking condition.How can i do it.I dont know much about BDC.
2007 May 04 11:26 AM
Hi
IN the program generated by bdc
perform bdc_field using 'LIKP-LIFEX'
'value'.
give the values wht u required in the above place .
hope this helps you
2007 May 04 11:29 AM
2007 May 04 11:39 AM
2007 May 04 11:58 AM
If you want to fill fields of a transaction you have to use an internal table of type bdcdata. You just need to fill in the fieldname (fnam) and the new value (fval). After that you can use CALL TRANSACTION with using the internal table.
DATA: wa_bdcdata TYPE bdcdata,
it_bdcdata TYPE TABLE OF bdcdata.
wa_bdcdata-program = 'XYZ'. "name of the program
wa_bdcdata-dynpro = '1000'. "screen number
wa_bdcdata-dynbegin = 'X'.
APPEND wa_bdcdata to it_bdcdata.
wa_bdcdata-fnam = 'SFLIGHT-CARRID'. "fieldname on screen
wa_bdcdata-fval = 'XX'. "value for the field
APPEND wa_bdcdata to it_bdcdata.
wa_bdcdata-fnam = 'SFLIGHT-CONNID'.
wa_bdcdata-fval = '0400'.
APPEND wa_bdcdata to it_bdcdata.
.
.
.
CALL TRANSACTION 'xyz' "name of your transaction
USING it_bdcdata MODE 'N'.