Skip to Content
0
Former Member
Nov 18, 2005 at 08:38 AM

quotes problem in bdc

28 Views

Hi,

Iam trying to create bdc field numbers (ex:VBEP-WMENG(02))

dynamically.While doing this bdcquotes are missing.

example:perform bdc_field using 'VBEP-WMENG(02)'

Iam trying to add '''(quote between quotes).But it is not accepting... and double quotes are no use ('"').

Is there any other way to do this....see the example...

I want to add single quotes....

points guaranteed...

loop at t_date.

  • loop at t_vbbe.

loop at t_det.

num = sy-tabix.

concatenate t_det-mbdat6(2) '.' t_det-mbdat4(2) '.'

t_det-mbdat+0(4) '.' into mbdat.

if t_det-mbdat = t_date-edatu.

  • if t_det-mbdat = t_vbbe-mbdat.

Concatenate '"' 'RV45A-ETDAT' '(' '0' num ')' '"' into vdat.

Concatenate '"' 'VBEP-WMENG' '(' '0' num ')' '"' into vmeng.

perform bdc_dynpro using 'SAPMV45A' '4003'.

perform bdc_field using 'BDC_OKCODE' '/00'.

perform bdc_field using 'BDC_CURSOR' vdat.

Perform bdc_field using vdat mbdat.

perform bdc_field using 'BDC_OKCODE' '/00'.

perform bdc_field using 'BDC_CURSOR' vmeng.

Perform bdc_field using vmeng t_det-omeng.

endif.

clear: vdat, num, vmeng.

endloop.

endloop.

cheers

kaki