2006 Jun 20 1:29 PM
Hi, i must do a batch input for transaction se78 for import images. Here is the registration code:
perform open_group.
perform bdc_dynpro using 'SAPMSSCH' '2000'.
perform bdc_field using 'BDC_OKCODE'
'=%_GC 133 22'.
perform bdc_dynpro using 'SAPMSSCH' '2001'.
perform bdc_field using 'BDC_OKCODE'
'=GIMP'.
perform bdc_field using 'BDC_CURSOR'
'RSTXT-TDNAME'.
perform bdc_field using 'RB_GRAPHIC_BMON'
'X'.
perform bdc_dynpro using 'SAPLSTXBITMAPS' '4001'.
perform bdc_field using 'BDC_CURSOR'
'RB_GRAPHIC_BCOL'.
perform bdc_field using 'BDC_OKCODE'
'=OK'.
perform bdc_field using 'RLGRAP-FILENAME'
'C:\Documents and Settings\m.antonini-c'
& 'ons.M-ANTONINI\Desktop\COOK.bmp'.
perform bdc_field using 'STXBITMAPS-TDNAME'
'COOK'.
perform bdc_field using 'RB_GRAPHIC_BMON'
''.
perform bdc_field using 'RB_GRAPHIC_BCOL'
'X'.
perform bdc_field using 'STXBITMAPS-AUTOHEIGHT'
'X'.
perform bdc_dynpro using 'SAPMSSCH' '2000'.
perform bdc_field using 'BDC_OKCODE'
'=BACK'.
perform bdc_field using 'BDC_CURSOR'
'RSTXT-TDNAME'.
perform bdc_field using 'RSTXT-TDNAME'
'COOK'.
perform bdc_field using 'RB_GRAPHIC_BCOL'
'X'.
perform bdc_transaction using 'SE78'.
perform close_group.
The problem is: at the begin of the registratio, SAP doesn't recognize the command button:
perform bdc_field using 'BDC_OKCODE'
'=%_GC 133 22'.
Why?
There's another mode to import image (FM for example) or there's a solution for that?
Thanks for answers.
2006 Jun 20 1:36 PM
Try out this FM SAPSCRIPT_IMPORT_GRAPHIC_BDS
Warm Regards
Anup Varghese
2006 Jun 20 1:36 PM
Try out this FM SAPSCRIPT_IMPORT_GRAPHIC_BDS
Warm Regards
Anup Varghese
2006 Jun 20 1:45 PM
2006 Jun 20 1:46 PM
The FM is interesting, but it call a screen that i must not see, the screen 4001 must run in background and that i think it`s impossible.
2006 Jun 20 1:46 PM
hi,
check my previous post, there you can see the example.
Regards
vijay