07-28-2007 11:47 AM
Hi
my problem is i am working on display mode where i cannot make changes then how to write the perform statement by seeing Recording .suppose i want only 2 fields to make changes in screen so in this case should i write the perform for only those two fields .
07-28-2007 12:06 PM
Hi
Yes, You have to write the perform only for those 2 fields
note down the Program Name, Screen Name and those 2 screen field names and write the perform to those 2 fields only
press F1 and find the technical field and program,screen name etc
<b>Reward points for useful Answers</b>
Regards
Anji
07-28-2007 1:35 PM
Hi Gaurav,
See like this,
1.
*****
> > If for this screen recording exist already then you dont require to add perform again.
perform bdc_dynpro using 'SAPMF02K' '0220'.
FORM BDC_DYNPRO USING PROG SCR.
CLEAR IT_BDCDATA.
IT_BDCDATA-PROGRAM = PROG.
IT_BDCDATA-DYNPRO = SCR.
IT_BDCDATA-DYNBEGIN = 'X'.
APPEND IT_BDCDATA.
ENDFORM.
*****
2.Now for fields
FORM BDC_FIELD USING FNAM FVAL.
CLEAR IT_BDCDATA.
IT_BDCDATA-FNAM = FNAM.
IT_BDCDATA-FVAL = FVAL.
APPEND IT_BDCDATA.
ENDFORM.
perform bdc_field using 'LFM1-WAERS'
IT_XK01-WAERS.
The Field names screen names you can get it by pressing F1 and take technical help.
Reward if useful!
07-28-2007 3:52 PM
Hi,
There will be transcation for modfiying the fields. since you are using a transcation which will show the fields in display mode, you can't create a BDC recording for that. check for the transcation which allows to modify the values and then create a BDC recording and call the transcation.
for example, Vt03n will allow only to see the contents only in display mode.
if you want to make some change, then you have to use VT02N.
create a recording for VT02N and get the field name and screen name.
Then write the BDC and call transcation VT02n using gt_bdcdata.
Regards,
Niyaz