Application Development 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: 

BDC

Former Member
0 Kudos
88

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.

4 REPLIES 4

Former Member
0 Kudos
61

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

Former Member

Former Member
0 Kudos
61

Former Member
0 Kudos
61

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'.