BDC - not working in 'No Display' mode

Hi Friends,
I have written a BDC for TCode O3URV_SS0.I have used CALL TRANSACTION for that.For capturing messages I have used application log.
In 'N' mode this BDC is not performing properly.For a new set of line item and  a header data it should save that  records and generate a document number.But in 'N' mode the BDC is working for 1st line item only.
This BDC is working fine in 'A' mode.
Please help me to solve this problem.

Moderator message - Welcome to SCN
But please search before asking - post locked
Please read [Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement], How to post code in SCN, and some things NOT to do... and [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers] before posting again.
Rob

Similar Messages

  • BDC not working in NO screen mode

    Hi All,
    We have a BDC in which we need to enter a multiple selection for a document field.
    For this we are using the table control concept.
    However, how do we fill in more than 8  single selections  (the number of input rows available on the screen)?
    We have tried to use the ok code "LINS" that inserts a line at a time. This is working perfectly in ALL screen mode.
    However, in NO screen mode what we observed is that the values get overwritten and only 1 document is eventually selected.
    Thanks & Regards,
    Sana.

    Hi,
    plz have a look at the below code...
    FORM bdc_data .
    Work area for data record.
      DATA : lwa_header1 TYPE t_header.
    Declaration of local variable.
      DATA : lv_index TYPE sytabix.
      IF NOT i_header[] IS INITIAL.
        v_item_cntr = 1.
        v_cond_cntr = 2.
        v_scale_cntr = 1.
        v_cong_flg = 2.
        LOOP AT i_header INTO wa_header.
          lv_index = sy-tabix + 1.
          CASE wa_header-rec_type.
            WHEN c_h.
    -- For header of contracts--
              PERFORM header_data_upload USING wa_header.
    --For items of contarcts--
            WHEN  c_i.
    If the number of lines in the line item screen exceeds
    14 then we need to use the newpage okcode for adding
    new line items
              IF v_item_cntr GE 15.
                PERFORM bdc_dynpro      USING 'SAPMM06E' '0220'.
                PERFORM bdc_field       USING 'BDC_OKCODE'
                                                      '=NP'.
                v_item_cntr = 2.
              ENDIF.
    For uploading the item data
              PERFORM item_data_upload USING wa_header.
    Read the internal table for next record
              READ TABLE i_header INTO lwa_header1 INDEX lv_index.
              IF lwa_header1-rec_type = c_h OR sy-subrc <> 0.
    if no more line items found then the data should be saved
                PERFORM bdc_dynpro      USING 'SAPMM06E' '0220'.
                PERFORM bdc_field       USING 'BDC_OKCODE'
                                                    'BU'.
    If there exists condition record for that line item
    then go to condition screen with OKCODE '=KO'
              ELSEIF lwa_header1-rec_type = c_c.
                PERFORM bdc_field       USING 'BDC_OKCODE'
                                         '=KO'.
              ENDIF.
    --for items conditions--
            WHEN c_c.
    Upload the condition data
              PERFORM conditions_data_upload USING wa_header.
    Read the internal table for next record
              READ TABLE i_header INTO lwa_header1 INDEX lv_index.
    If the next record is an item go back to item screen
              IF lwa_header1-rec_type = c_i.
                PERFORM bdc_dynpro      USING 'SAPMV13A' '0201'.
                PERFORM bdc_field  USING 'BDC_OKCODE'
                                         'BACK'.
    If the next record is header then save the data
              ELSEIF lwa_header1-rec_type = c_h OR sy-subrc <> 0.
                PERFORM bdc_dynpro      USING 'SAPMV13A' '0201'.
                PERFORM bdc_field       USING 'BDC_OKCODE'
                                        'BACK'.
                PERFORM bdc_dynpro      USING 'SAPMM06E' '0220'.
                PERFORM bdc_field       USING 'BDC_OKCODE'
                                                    'BU'.
    If there exists scale record for that condition
    then go to scale screen with OKCODE '=PSTF'
              ELSEIF lwa_header1-rec_type = c_s.
                PERFORM bdc_field       USING 'BDC_OKCODE'
                                          '=PSTF'.
              ENDIF.
    --for items Scales--
            WHEN c_s.
    Upload the scales data
              PERFORM scales_data_upload USING wa_header.
    Read the internal table for next record
              READ TABLE i_header INTO lwa_header1 INDEX lv_index.
    If the next record is condition record then go to condition
    screen
              IF lwa_header1-rec_type = c_c .
                v_cong_flg = v_cong_flg + 1.
                v_scale_cntr = 1.
                PERFORM bdc_dynpro      USING 'SAPMV13A' '0303'.
                PERFORM bdc_field  USING 'BDC_OKCODE'
                                         'BACK'.
    If the next record is header the go back to item screen
    and save the data
              ELSEIF lwa_header1-rec_type = c_h OR sy-subrc <> 0.
                PERFORM bdc_dynpro      USING 'SAPMV13A' '0303'.
                PERFORM bdc_field       USING 'BDC_OKCODE'
                                        'BACK'.
                PERFORM bdc_dynpro      USING 'SAPMV13A' '0201'.
                PERFORM bdc_field       USING 'BDC_OKCODE'
                                        'BACK'.
                v_cond_cntr = 2.
                v_scale_cntr = 1.
                v_cong_flg = 2.
                PERFORM bdc_dynpro      USING 'SAPMM06E' '0220'.
                PERFORM bdc_field       USING 'BDC_OKCODE'
                                                    'BU'.
    If the next record is item the go back to item screen
              ELSEIF lwa_header1-rec_type = c_i.
                PERFORM bdc_dynpro      USING 'SAPMV13A' '0303'.
                PERFORM bdc_field       USING 'BDC_OKCODE'
                                        'BACK'.
                PERFORM bdc_dynpro      USING 'SAPMV13A' '0201'.
                PERFORM bdc_field       USING 'BDC_OKCODE'
                                        'BACK'.
                v_cond_cntr = 2.
                v_scale_cntr = 1.
                v_cong_flg = 2.
              ENDIF.
          ENDCASE.           "CASE wa_header-rec_type.
    If the next record is header or no next record found then
    call the transaction
          READ TABLE i_header INTO lwa_header1 INDEX lv_index.
          IF lwa_header1-rec_type = c_h OR sy-subrc NE 0.
            v_cong_flg = 2.
            v_scale_cntr = 1.
            v_item_cntr = 1.
            PERFORM call_transaction USING wa_header2 .
            CLEAR lv_index.
          ENDIF.
        ENDLOOP.               "LOOP AT i_header INTO wa_header.
      ENDIF.                   "IF NOT i_header[] IS INITIAL.
    ENDFORM.                   "bdc_data
           Start new screen                                              *
    FORM bdc_dynpro USING pv_program LIKE bdcdata-program
                          pv_dynpro LIKE bdcdata-dynpro.
      CLEAR wa_bdcdata.
      wa_bdcdata-program  = pv_program.
      wa_bdcdata-dynpro   = pv_dynpro.
      wa_bdcdata-dynbegin = c_x.
      APPEND wa_bdcdata TO i_bdcdata.
      CLEAR wa_bdcdata.
    ENDFORM.                    "BDC_DYNPRO
           Insert field                                                  *
    FORM bdc_field USING pv_fnam LIKE bdcdata-fnam
                         pv_fval TYPE any.
      CLEAR wa_bdcdata.
      wa_bdcdata-fnam = pv_fnam.
      wa_bdcdata-fval = pv_fval.
      APPEND wa_bdcdata TO i_bdcdata.
      CLEAR wa_bdcdata.
    ENDFORM.                    "BDC_FIELD
    Declaration of local constants
      CONSTANTS : lc_tcode  TYPE tstc-tcode VALUE 'ME31K',
                  lc_n      TYPE ctu_mode   VALUE 'N'.
    Declaration of local variables
      DATA: lv_msg   TYPE string,
            lv_opt   TYPE ctu_params.
      lv_opt-defsize = c_x.
      lv_opt-dismode = lc_n.
      lv_opt-updmode = c_l.
      REFRESH i_messtab.
    Call the transaction to create the Purchasing Contracts
      CALL TRANSACTION lc_tcode USING i_bdcdata
                       OPTIONS FROM lv_opt
                       MESSAGES INTO i_messtab.
      IF NOT i_messtab[] IS INITIAL.
        READ TABLE i_messtab WITH KEY msgtyp = 'E'.
        IF sy-subrc EQ 0.
          CALL FUNCTION 'FORMAT_MESSAGE'
            EXPORTING
              id   = i_messtab-msgid
              lang = sy-langu
              no   = i_messtab-msgnr
              v1   = i_messtab-msgv1
              v2   = i_messtab-msgv2
              v3   = i_messtab-msgv3
              v4   = i_messtab-msgv4
            IMPORTING
              msg  = lv_msg.
          MOVE: p_wa_header-lifnr TO wa_error-lifnr,
                p_wa_header-evart TO wa_error-evart,
                p_wa_header-vedat TO wa_error-vedat,
                p_wa_header-ekorg TO wa_error-ekorg,
                p_wa_header-ekgrp TO wa_error-ekgrp,
                p_wa_header-epstp TO wa_error-epstp,
                p_wa_header-knttp TO wa_error-knttp,
                p_wa_header-bukrs TO wa_error-bukrs,
                p_wa_header-kdatb TO wa_error-kdatb,
                p_wa_header-kdate TO wa_error-kdate,
                p_wa_header-ktwrt TO wa_error-ktwrt,
                p_wa_header-waers TO wa_error-waers,
                p_wa_header-wkurs TO wa_error-wkurs,
                p_wa_header-inco1 TO wa_error-inco1,
                p_wa_header-inco2 TO wa_error-inco2,
                p_wa_header-ihran TO wa_error-ihran,
                p_wa_header-angnr TO wa_error-angnr,
                lv_msg            TO wa_error-msg.
          APPEND wa_error TO i_error.
          CLEAR wa_error.
        ELSE.
          READ TABLE i_messtab WITH KEY msgtyp = 'S'.
          IF sy-subrc EQ 0.
            CALL FUNCTION 'FORMAT_MESSAGE'
              EXPORTING
                id   = i_messtab-msgid
                lang = sy-langu
                no   = i_messtab-msgnr
                v1   = i_messtab-msgv1
                v2   = i_messtab-msgv2
                v3   = i_messtab-msgv3
                v4   = i_messtab-msgv4
              IMPORTING
                msg  = lv_msg.
            MOVE: p_wa_header-lifnr TO wa_success-lifnr,
                  p_wa_header-evart TO wa_success-evart,
                  p_wa_header-vedat TO wa_success-vedat,
                  p_wa_header-ekorg TO wa_success-ekorg,
                  p_wa_header-ekgrp TO wa_success-ekgrp,
                  p_wa_header-epstp TO wa_success-epstp,
                  p_wa_header-knttp TO wa_success-knttp,
                  p_wa_header-bukrs TO wa_success-bukrs,
                  p_wa_header-kdatb TO wa_success-kdatb,
                  p_wa_header-kdate TO wa_success-kdate,
                  p_wa_header-ktwrt TO wa_success-ktwrt,
                  p_wa_header-waers TO wa_success-waers,
                  p_wa_header-wkurs TO wa_success-wkurs,
                  p_wa_header-inco1 TO wa_success-inco1,
                  p_wa_header-inco2 TO wa_success-inco2,
                  p_wa_header-ihran TO wa_success-ihran,
                  p_wa_header-angnr TO wa_success-angnr,
                  i_messtab-msgv2   TO wa_success-ebeln.
            APPEND wa_success TO i_success.
            CLEAR wa_success.
          ENDIF.
        ENDIF.
      ENDIF.
      REFRESH i_bdcdata.
    ENDFORM.                    " call_transaction
    Regards,
    Nagaraj

  • Dear Sirs,when i use the computer updating my iphone to ios 7.1,suddenly black out.The computer has no power and my iphone does not work and keep display the screen that connect to itunes. so when i connect my iphone to iTunes, it says"itunes has detected

    Dear Sirs,when i use the computer updating my iphone to ios 7.1,suddenly black out.The computer has no power and my iphone does not work and keep display the screen saying the iphone need to connect to itunes. So when i connect my iphone to iTunes, the computer says"itunes has detected an iphone in recovery mode. you must restore this iphone before it can be used with itunes"
    So my question is if I click OK(restore the iphone),will i lose all my data and whatsapp??
    Thank you for your help and time.
    Regards,
    hopeless

    If you didn't back up the phone to iCloud or iTunes (on your computer) BEFORE attempting the update, the data will be lost.

  • Aero in Windows 7 64bit home premium does not work. Aero display selections are grayed out.

    Aero in Windows 7 64bit home premium does not work. Aero display selections are grayed out.  HP 600-1315xt.
    Have tried everything I can find on internet and here on HP. None of the suggestions worked. Windows fixit for windows could not fixit. Any suggestions are appreciated. I can always use my disks and rebuild the computer. A last resort.

    Hi,
    It might be the graphic driver not compitable with the graphic device.  Has there been a change to the graphic driver?
    One thing you can try is to uninstall graphic driver and download the latest from Windows Update (if you haven't tried this).  Here are the possible steps:
    1.  Go to Control Panel->Hardware and Sound->Device Manager,  uninstall the graphic card driver by right clicking and select "uninstall".  Make sure the option "Delete the driver software for this device" is selected.
    2.  Reboot the system.
    3.  Go to Control Panel->System and Security->Windows Update, click on "Optional updates" and find the driver for g210 and do the update.
    I work on behalf o HP.
    Please click the white Kudos star to say thanks.
    Please click Accept As Solution if you found my response helpful.

  • I bought my iPhone5 4 months ago and now the camera is not working, it only displays black in the screen. I've tried reset, restore for how many times but still the problem is not being resolve. Any help from you Apple team?

    I bought my iPhone5 4 months ago and now the camera is not working, it only displays black in the screen. I've tried reset, restore for how many times but still the problem is not being resolve. Any help from you Apple team?

    There is no Apple here, this is a user to user forum.  When you said you restored, then you restore as NEW?
    If you restored as New and still the problem persiist, then it time to take a trip to the Apple store.

  • BDC not working in display no screen mode

    Hi exparts,
    I am facing a strange problem. I am creating or changing PIR ( transaction ME11, ME12) through BDC.
    when i am running it in 'Display all screen mode' It is running fine and creating or changing the PIR.
    But, when i am running it in 'Display no screen mode' It is not working. I have used call transaction of BDC and its OPTIONS parameter to export mode and default sixe. In the both cases the return message carry only success message.
    Please advice where i am going wrong and how to run it in 'display no screen' mode.
    Thanks in advance.
    Regards,
    abhshek sarkar

    DId you try  OPT-RACOMMIT = 'X' ?
    DATA: P_OPT TYPE CTU_PARAMS.
                P_OPT-DISMODE = 'N'.
               P_OPT-UPMODE = 'L'.
               P_OPT-RACOMMIT = 'X'.
    CALL TRANSACTION tcode  USING BDC_TAB OPTIONS FROM P_OPT MESSAGES INTO MESSTAB.

  • BDC not working in Background mode

    Hi All,
    I have created a BDC. It is working fine in forground mode but not woking in background mode. Please any one know what could be the problem.
    thanks,
    Shweta

    Hi,
    I think there is some field in your screen is disabled for input. As it will not through you error.
    Please run you BDC in foreground mode and check it and see if you get any message. it will be a sucess message.
    this thing happend to me also as my ship to party was disbled in one of screen of VA02.
    thanks,
    Sarbpreet

  • BDC on FK01 is not working in NO-SCREEN Mode

    Hi gurus ,
    i have a situation,
      A custom interface (built as per requirement) is facing some issues with BDC when executing in "NO-SCREEN mode".
        There was a requirement to include email adress while creating permitted payee vendors for corresponding Original vendors iN  sap.
        Now it used to create them . But after i retrieved the email details for a vendor and passsed in the BDC based on some condition, it doesnot work in "NO-SCREEN Mode" . For ALL Screen Mode it is working as expected ; when OK-CODES are given it asks with a pop-up which mode of communication reqd.
    if  email is selected then it assigns onto the new payee vendor being created. What's the problemwith NO-SCREN Mode?
    could somebody plz guiide here.
    Thanx
    kylie

    Hi Sandra ,
    Thanks for your suggestion throiugh the link.
    Had checked the trouble shooting for  BDC : but the scenario in which i experienc eth eproblem is little different.
    Well the Interface to create vendors was working perfectly in ALL Screen as well as NO-SCREEN mode.
    But a small requirement seem to change its execution.
    The Interface had a commented code snippet : retrieve email address from ADR6 table. Now according to the new requirement this code snippet needs to be utilized. So i uncommented that and duly passed th etable entries into the concerned screen (the code for that screen aldready exsits in the recording but not utilized since the retrieval was commented)
    Collects the email address for any vendor from ADr6 table
    Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code
    now for linking the above created vendor, FK02 BDC is maintained. In this BDC the payment transaction screen is used to link payee vendors (above created vendor)  at company code level for any principal vendors (selected from lfa1 and lfb1 table). So only two screens for linking .
    this entire code was working perfect in both A mode and  N mode  but after including the ADR6 code snippet i dont find teh similar execution in N mode.
    Could you please guide me where could i ahve made some mistake.
    thanks
    Kylie
    Edited by: kylietisha on Jun 6, 2010 5:27 PM
    Edited by: kylietisha on Jun 6, 2010 5:42 PM
    Edited by: Rob Burbank on Jun 6, 2010 4:33 PM

  • BDC not working in MODE "N"

    Hi All,
    I have written a BDC for F-37, which is working fine in all screen mode
    but not working in "N" mode..
    P.S. I have BDC as the only option.
    Thanks in advance,
    Kalyan Venigalla.

    If you look at the documentation of CALL TRANSACTION you can pass BDC options which is of type CTU_PARAMS. In this assign 'X' to field 'RACOMMIT' and try to run the BDC in 'N' mode.
    DATA: OPT TYPE CTU_PARAMS.
    OPT-DISMODE = 'N'.
    OPT-UPMODE = 'L'.
    OPT-RACOMMIT = 'X'.
    CALL TRANSACTION 'F-37' USING BDC_TAB OPTIONS FROM OPT MESSAGES INTO MESSTAB.
    Thanks and regards,
    S. Chandramouli.

  • Fields not greyed out in display mode in screen exit

    Hi all,
    i am working on an screen exit for CJ02 transaction. the values in the customer subscreen are getting updated in database and even it is reflecting in fields when viewed again. the problem is that in display mode (CJ03) the fields are still editable. though there is no save button, but the fields should be greyed out.
    i have tried to modify screen using LOOP AT SCREEN in the function exit provided in PBO.....but it is not picking the subscreen.
    please provide any solution as soon as possible.
    thanks in advance

    In the PBO in your screen exit:
    IF sy-tcode EQ 'CJ03'.
    LOOP AT SCREEN .
    if screen-name 'your field'
    screen-input = 0.
    screen-output = 1.
    MODIFY SCREEN.
    ENDIF.
    endif.
    what enhancement are you using?
    bye

  • IMac late-2013 not working as external display to t430s with thunderbolt cable

    Can anyone confirm wether this actually works?
    - TP: Bios is at the latest upgrade-level
    - TP: thunderbolt is enabled in bios
     - TP: OS is Win7
    - I know how to boot in Target Display Mode on the iMac (pressing T during boot - the thunderbolt-log is shown on-screen - never worked with Cmd-F2 nor Fn-Cmd-F2)
    - there is a chime ("ding-dong") on the TP suggesting that it detects the imac going in-or-out of Target Display Mode
    - in the sysinfo of the imac it is confirmed that a thunderbolt-cable is attached but "no device detected"
    thx
    pascal

    No luck so far.  
    Thunderbolt is disabled in the T430s bios settings (security tab)
    What setting should I select as the boot Display Device (bios > config > display)? I assume it should be "Digital on Thinkpad", right? I do not have Nvidia Optimus technology btw
    Jin, when you say "your iMac should automatically detect the DP input and switch on" do you mean exactly that?  That the imac screen should switch to the thinkpad's desktop with no pushing of a key on the mac-keyboard whatsoever?
    thx
    pascal

  • Dual 30" ACDs not working correctly in mirror mode

    My Apple Care guy is telling me that the problem I have is known and there is nothing they can do for me. I find this hard to believe, especially since it seems like I'm the only one complaining about this, so, before throwing in the towel and accepting defeat I ask, "Does anyone else have two 30 inch ACDs that do not work correctly while in mirror mode?". I have a Mac Pro4,1 eight core Intel Xeon with the ATI HD 4870. The details of my problem are in another post here (http://discussions.apple.com/thread.jspa?threadID=2659330&tstart=0).

    Charlie Parker-
    I do not represent the position of Apple, Inc. I am another User, like you.
    After reviewing your Videos, I suggest that you may never be satisfied with the performance of two displays on one display card.
    You are a very exacting and demanding user. You may want to consider having each display on its own card to maintain crispness and lack of transient artifacts.

  • I Mac 21 post 2012 don not switch to Target Display Mode

    I connec a MiniDisplay to VGA adpter ion the Thunderbolt soket and connect it to a PC.Bur CMD+F2 does not switch my IMac to TDM
    Any hint?
    Thanks

    Sorry but its just not going to work. In order to have TDM work on a 2011-2013 iMac your PC would need a Thunderbolt port that supports video out, chances are extremely slim you PC has that ability.
    Please read Apple's FAQ on TDM and they will spell it out for you, you can get it by clicking Target Display Mode: Frequently Asked Questions (FAQ)

  • Bdc not working with workflow

    Hallo,
    I have an issue with a bdc FM i created not working with workflow.
    If I test the FM, it works ok.
    If i Test the method calling the FM it works ok.
    if i test the task calling the method it works ok.
    If I run the workflow it doesn't work, and i get the following messages:
    S     DC     1     Unable to initialise ABAP Control Framework ...             
    S     DC     1     Unable to initialise ABAP Control Framework ...          
    S     DC     6     Control Framework: Fatal error - GUI cannot be reached     
    A     SY     2     Exception condition "CNTL_ERROR" raised.
    What is the meaning of this??     
    Bdc is calling Me54n to set to click on reject button during Purchase Requisition Release,
    putting the PR processing state in status '08'
    I checked all the binding which are fine. No container parameter are passed a part from the business object.
    here is the FM coding:
    FUNCTION ZME_N_WF_REJ_PR.
    ""Local interface:
    *"  IMPORTING
    *"     VALUE(CTU) LIKE  APQI-PUTACTIVE DEFAULT 'X'
    *"     VALUE(MODE) LIKE  APQI-PUTACTIVE DEFAULT 'N'
    *"     VALUE(UPDATE) LIKE  APQI-PUTACTIVE DEFAULT 'L'
    *"     VALUE(GROUP) LIKE  APQI-GROUPID OPTIONAL
    *"     VALUE(USER) LIKE  APQI-USERID OPTIONAL
    *"     VALUE(KEEP) LIKE  APQI-QERASE OPTIONAL
    *"     VALUE(HOLDDATE) LIKE  APQI-STARTDATE OPTIONAL
    *"     VALUE(NODATA) LIKE  APQI-PUTACTIVE DEFAULT '/'
    *"     VALUE(BANFN_003) LIKE  BDCDATA-FVAL
    *"  EXPORTING
    *"     VALUE(SUBRC) LIKE  SYST-SUBRC
    *"  TABLES
    *"      MESSTAB STRUCTURE  BDCMSGCOLL OPTIONAL
    subrc = 0.
    perform bdc_nodata      using NODATA.
    perform open_group      using GROUP USER KEEP HOLDDATE CTU.
    perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=MECHOB'.
    *perform bdc_field       using 'DYN_6000-LIST'
                                 LIST_001.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MEREQ3328-AFNAM'.
    *perform bdc_field       using 'MEREQ3328-EKGRP'
                                 EKGRP_002.
    perform bdc_dynpro      using 'SAPLMEGUI' '0002'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=MEOK'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MEPO_SELECT-BANFN'.
    perform bdc_field       using 'MEPO_SELECT-BANFN'
                                  BANFN_003.
    perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=MEREJECT'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'DYN_6000-LIST'.
    perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=MESAVE'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'DYN_6000-LIST'.
    perform bdc_transaction tables messtab
    using                         'ME54N'
                                  CTU
                                  MODE
                                  UPDATE.
    if sy-subrc <> 0.
      subrc = sy-subrc.
      exit.
    endif.
    perform close_group using     CTU.
    ENDFUNCTION.
    INCLUDE BDCRECXY .
    I tries the same approach on ML81N to block a service entry sheet.(pressing the lock icon),
    I get exactly the same issue.
    Anybody knows how to resolve?
    Or how to do the same without using a bdc call?
    regards,
    marco

    Hi
    this is the Method callind the FM
    object is BUS2105 w delegation ZBUS2105.
    BEGIN_METHOD ZRELEASEREJECTED CHANGING CONTAINER.
    Data: CTU TYPE APQI-PUTACTIVE,      
          MODE TYPE APQI-PUTACTIVE,     
          UPDATE TYPE APQI-PUTACTIVE,
         NODATA TYPE APQI-PUTACTIVE.  
    CTU = 'X'.               
    MODE = 'N'.                
    UPDATE = 'L'.              
    NODATA = '/'.              
    iobjectkey = object-key.
       CALL FUNCTION 'ZME_N_WF_REJ_PR'             
         EXPORTING                                 
           BANFN_003 = iobjectkey                  
           NODATA = NODATA                                            
           UPDATE = UPDATE                         
           MODE = MODE                             
           CTU = CTU                               
         IMPORTING                                 
           SUBRC = SUBRC                           
         TABLES                                    
           MESSTAB = MESSAGE                       
         EXCEPTIONS                                
           OTHERS = 01.                            
       CASE SY-SUBRC.                              
         WHEN 0.            " OK                   
         WHEN OTHERS.       " to be implemented    
       ENDCASE.                                    
    SWC_SET_ELEMENT CONTAINER 'Subrc' SUBRC.                   
    SWC_SET_TABLE CONTAINER 'MESSAGE' MESSAGE.                                                                               
    END_METHOD.

  • Bdc not working with workflow - background task

    Hallo,
    I have an issue with a bdc FM i created not working with workflow.
    If I test the FM, it works ok.
    If i Test the method calling the FM it works ok.
    if i test the task calling the method it works ok.
    If I run the workflow it doesn't work, and i get the following messages:
    S DC 1 Unable to initialise ABAP Control Framework ...
    S DC 1 Unable to initialise ABAP Control Framework ...
    S DC 6 Control Framework: Fatal error - GUI cannot be reached
    A SY 2 Exception condition "CNTL_ERROR" raised.
    What is the meaning of this??
    Bdc is calling Me54n to set to click on reject button during Purchase Requisition Release,
    putting the PR processing state in status '08'
    I checked all the binding which are fine. No container parameter are passed a part from the business object.
    here is the FM coding:
    FUNCTION ZME_N_WF_REJ_PR.
    ""Local interface:
    *" IMPORTING
    *" VALUE(CTU) LIKE APQI-PUTACTIVE DEFAULT 'X'
    *" VALUE(MODE) LIKE APQI-PUTACTIVE DEFAULT 'N'
    *" VALUE(UPDATE) LIKE APQI-PUTACTIVE DEFAULT 'L'
    *" VALUE(GROUP) LIKE APQI-GROUPID OPTIONAL
    *" VALUE(USER) LIKE APQI-USERID OPTIONAL
    *" VALUE(KEEP) LIKE APQI-QERASE OPTIONAL
    *" VALUE(HOLDDATE) LIKE APQI-STARTDATE OPTIONAL
    *" VALUE(NODATA) LIKE APQI-PUTACTIVE DEFAULT '/'
    *" VALUE(BANFN_003) LIKE BDCDATA-FVAL
    *" EXPORTING
    *" VALUE(SUBRC) LIKE SYST-SUBRC
    *" TABLES
    *" MESSTAB STRUCTURE BDCMSGCOLL OPTIONAL
    subrc = 0.
    perform bdc_nodata using NODATA.
    perform open_group using GROUP USER KEEP HOLDDATE CTU.
    perform bdc_dynpro using 'SAPLMEGUI' '0014'.
    perform bdc_field using 'BDC_OKCODE'
    '=MECHOB'.
    *perform bdc_field using 'DYN_6000-LIST'
    LIST_001.
    perform bdc_field using 'BDC_CURSOR'
    'MEREQ3328-AFNAM'.
    *perform bdc_field using 'MEREQ3328-EKGRP'
    EKGRP_002.
    perform bdc_dynpro using 'SAPLMEGUI' '0002'.
    perform bdc_field using 'BDC_OKCODE'
    '=MEOK'.
    perform bdc_field using 'BDC_CURSOR'
    'MEPO_SELECT-BANFN'.
    perform bdc_field using 'MEPO_SELECT-BANFN'
    BANFN_003.
    perform bdc_dynpro using 'SAPLMEGUI' '0014'.
    perform bdc_field using 'BDC_OKCODE'
    '=MEREJECT'.
    perform bdc_field using 'BDC_CURSOR'
    'DYN_6000-LIST'.
    perform bdc_dynpro using 'SAPLMEGUI' '0014'.
    perform bdc_field using 'BDC_OKCODE'
    '=MESAVE'.
    perform bdc_field using 'BDC_CURSOR'
    'DYN_6000-LIST'.
    perform bdc_transaction tables messtab
    using 'ME54N'
    CTU
    MODE
    UPDATE.
    if sy-subrc 0.
    subrc = sy-subrc.
    exit.
    endif.
    perform close_group using CTU.
    ENDFUNCTION.
    INCLUDE BDCRECXY .
    I tries the same approach on ML81N to block a service entry sheet.(pressing the lock icon),
    I get exactly the same issue.
    Anybody knows how to resolve?
    Or how to do the same without using a bdc call?
    regards,
    marco

    Hallo,
    I have an issue with a bdc FM i created not working with workflow.
    If I test the FM, it works ok.
    If i Test the method calling the FM it works ok.
    if i test the task calling the method it works ok.
    If I run the workflow it doesn't work, and i get the following messages:
    S DC 1 Unable to initialise ABAP Control Framework ...
    S DC 1 Unable to initialise ABAP Control Framework ...
    S DC 6 Control Framework: Fatal error - GUI cannot be reached
    A SY 2 Exception condition "CNTL_ERROR" raised.
    What is the meaning of this??
    Bdc is calling Me54n to set to click on reject button during Purchase Requisition Release,
    putting the PR processing state in status '08'
    I checked all the binding which are fine. No container parameter are passed a part from the business object.
    here is the FM coding:
    FUNCTION ZME_N_WF_REJ_PR.
    ""Local interface:
    *" IMPORTING
    *" VALUE(CTU) LIKE APQI-PUTACTIVE DEFAULT 'X'
    *" VALUE(MODE) LIKE APQI-PUTACTIVE DEFAULT 'N'
    *" VALUE(UPDATE) LIKE APQI-PUTACTIVE DEFAULT 'L'
    *" VALUE(GROUP) LIKE APQI-GROUPID OPTIONAL
    *" VALUE(USER) LIKE APQI-USERID OPTIONAL
    *" VALUE(KEEP) LIKE APQI-QERASE OPTIONAL
    *" VALUE(HOLDDATE) LIKE APQI-STARTDATE OPTIONAL
    *" VALUE(NODATA) LIKE APQI-PUTACTIVE DEFAULT '/'
    *" VALUE(BANFN_003) LIKE BDCDATA-FVAL
    *" EXPORTING
    *" VALUE(SUBRC) LIKE SYST-SUBRC
    *" TABLES
    *" MESSTAB STRUCTURE BDCMSGCOLL OPTIONAL
    subrc = 0.
    perform bdc_nodata using NODATA.
    perform open_group using GROUP USER KEEP HOLDDATE CTU.
    perform bdc_dynpro using 'SAPLMEGUI' '0014'.
    perform bdc_field using 'BDC_OKCODE'
    '=MECHOB'.
    *perform bdc_field using 'DYN_6000-LIST'
    LIST_001.
    perform bdc_field using 'BDC_CURSOR'
    'MEREQ3328-AFNAM'.
    *perform bdc_field using 'MEREQ3328-EKGRP'
    EKGRP_002.
    perform bdc_dynpro using 'SAPLMEGUI' '0002'.
    perform bdc_field using 'BDC_OKCODE'
    '=MEOK'.
    perform bdc_field using 'BDC_CURSOR'
    'MEPO_SELECT-BANFN'.
    perform bdc_field using 'MEPO_SELECT-BANFN'
    BANFN_003.
    perform bdc_dynpro using 'SAPLMEGUI' '0014'.
    perform bdc_field using 'BDC_OKCODE'
    '=MEREJECT'.
    perform bdc_field using 'BDC_CURSOR'
    'DYN_6000-LIST'.
    perform bdc_dynpro using 'SAPLMEGUI' '0014'.
    perform bdc_field using 'BDC_OKCODE'
    '=MESAVE'.
    perform bdc_field using 'BDC_CURSOR'
    'DYN_6000-LIST'.
    perform bdc_transaction tables messtab
    using 'ME54N'
    CTU
    MODE
    UPDATE.
    if sy-subrc 0.
    subrc = sy-subrc.
    exit.
    endif.
    perform close_group using CTU.
    ENDFUNCTION.
    INCLUDE BDCRECXY .
    I tries the same approach on ML81N to block a service entry sheet.(pressing the lock icon),
    I get exactly the same issue.
    Anybody knows how to resolve?
    Or how to do the same without using a bdc call?
    regards,
    marco

Maybe you are looking for

  • Wrong filename with odt-files attachments

    Hi, i want to download an attachment called myfile.odt, but the navigator (i.e. and mozilla) only shows "name" without the extension. This only happens working with an expecific mail server (in the other mail servers this works ok). If i use Microsof

  • How to Integrate Epic and Crystal Reports

    Hi,     My hospital uses both Epic and Cerner Reporting. As a business objects admin I was asked to integrate Epic with Crystal Reports. I'm Using BOE XI 3.1 and Crystal Reports 2008, I want a planning to integrate my Crystal reports server with Epic

  • Runtime error on BDC call transaction.

    Hi Everyone, I'm getting a run time error: "Runtime error SYNTAX_ERROR has occurred" Diagnosis Error texts from the batch input are not output Only a placeholder while debugging the error comes at the following line: CALL TRANSACTION 'DSZ46C_DSAL' US

  • Utter failure on Comcast's Part to convert me from Dish.

    I have been a Dish Customer for 10 years. I foolishly thought Comcast might be able to offer me better technology/value.more than a month later, and i still do not have the most basic local TV channels. 6 phone calls, and 3 chat people (Non Americans

  • Concurrent sessions on a Mac running Leopard

    Hi Is it possible to have two people working on a same machine one log in locally and the other remotely? Like you will do in a windows server. Regards