‎2005 Jun 17 9:50 AM
Hi,
While running BDC we want to supress the "OK-Screen" dialog box, is it possible.
Example: while running BDC for MM02, BDC displays the material in "OK-Screen" we don't want that "OK-Screen" instead it should go directly to select view.
Advance thanks.
Regards,
Balaji Viswanath.
‎2005 Jun 17 10:11 AM
Hello,
I don't understand, why do you want to suppress ? Are you sure this screen will appear in BDC ?
I try the MM02 with SHDB, you can enter the article and select the select-view screen directly ..
Frédéric
‎2005 Jun 17 10:11 AM
Hello,
I don't understand, why do you want to suppress ? Are you sure this screen will appear in BDC ?
I try the MM02 with SHDB, you can enter the article and select the select-view screen directly ..
Frédéric
‎2005 Jun 17 10:23 AM
Hi Frederic,
Not during recording instead during execution.
While executing the BDC program "OK-Dialog" will prompt the Material no. and then we will press "Enter" then BDC will show "Select View" screen... now my requirement is it should directly go to "Select View" without pressing "Enter".
Advance thanks.
Regards,
Balaji Viswanath.
‎2005 Jun 17 10:26 AM
Maybe you don't execute the BDC in background job ?
I'm not sure you can by-pass this screen, if you need to go faster, maybe use BAPI.
Frédéric
‎2005 Jun 17 10:30 AM
Hello,
Please have a look at CALL TRANSACTION <TX> using <BDCDATA> MODE 'E'... and do not pass the OKCODE of the screen where you want to stop.
Internally the BDC will encounter a missing OKCODE (error) and immediately the processing is changed to foreground.
Hope this helps you.
Regards, Murugesh AS
‎2005 Jun 17 11:13 AM
Hello,
Try out this sample code:
report ZMM02
no standard page heading line-size 255.
DATA: BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE.
*include bdcrecx1.
parameters: P_MATNR like mara-matnr obligatory.
parameters: p_mode like ctu_params-dismode obligatory default 'E'.
start-of-selection.
*perform open_group.
perform bdc_dynpro using 'SAPLMGMM' '0060'.
perform bdc_field using 'BDC_CURSOR'
'RMMG1-MATNR'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_field using 'RMMG1-MATNR'
p_matnr.
*perform bdc_dynpro using 'SAPLMGMM' '0070'.
*perform bdc_field using 'BDC_CURSOR'
* 'MSICHTAUSW-DYTXT(01)'.
*perform bdc_field using 'BDC_OKCODE'
* '=ENTR'.
*perform bdc_field using 'MSICHTAUSW-KZSEL(01)'
* 'X'.
*perform bdc_dynpro using 'SAPLMGMM' '4004'.
*perform bdc_field using 'BDC_OKCODE'
* '=BU'.
*perform bdc_field using 'BDC_CURSOR'
* 'MAKT-MAKTX'.
*perform bdc_transaction using 'MM02'.
call transaction 'MM02' using BDCDATA mode p_mode.
clear: bdcdata,
bdcdata[].
*perform close_group.
*----------------------------------------------------------------------*
* Start new screen *
*----------------------------------------------------------------------*
FORM BDC_DYNPRO USING PROGRAM DYNPRO.
CLEAR BDCDATA.
BDCDATA-PROGRAM = PROGRAM.
BDCDATA-DYNPRO = DYNPRO.
BDCDATA-DYNBEGIN = 'X'.
APPEND BDCDATA.
ENDFORM.
*----------------------------------------------------------------------*
* Insert field *
*----------------------------------------------------------------------*
FORM BDC_FIELD USING FNAM FVAL.
* IF FVAL <> NODATA.
CLEAR BDCDATA.
BDCDATA-FNAM = FNAM.
BDCDATA-FVAL = FVAL.
APPEND BDCDATA.
* ENDIF.
ENDFORM.Please try out giving 'A' and 'E' in parameter P_MODE.
Hope this helps you.
Best Regards, Murugesh AS
Message was edited by: Murugesh Arcot
‎2005 Jul 03 12:02 AM
Hi,
I have not tried this before, but there is an option in the GUI to suppress this pop-up.
- Click on the GUI settings button (The last button on the top of any GUI screen - a 'TV' like one).
- Click on the 'options'.
- Goto the 'Expert' Tab.
- Switch off the 'Dialog Box for OK-Code' Check box in the 'Batch Input' section.
- Save the settings by clicking 'Apply' and 'OK'.
Let me know if it works !