BDC NOT WORKING BACKGROUND

Hi all
           I did a bdc for the tcode mira. It works fine in the foreground and displays
a status message "INVOICE DOCUMENT 411523 POSTED" is raised by SAP itself.
But in backgroud the program gets finished,but no documents is posted.
I want to run the program only in background .How to handle the message in background?
Thanks all.

ru  using Call Transaction or session method.
If u r using Call transaction then pass the messages into one more internal table and display the messages.
Ex.
DATA: I_MESSTAB LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
CALL TRANSACTION 'MIR7' USING I_BDCDATA
                     MODE   G_MODE
                     UPDATE 'S'
                     MESSAGES INTO I_MESSTAB.
loop at i_messtab and display the messages.

Similar Messages

  • MIR4- Invoice posting BDC not working in background

    Hi All,
    We have a requirement to create a BDC for posting an invoice and have created one. BDC is working in foreground and invoice is getting posted. But when we try to execute the BDC in background it is failing and invoice is not getting posted.
    Please help.
    Below is the dump in ST22.
    Category               ABAP Programming Error
    Runtime Errors         RAISE_EXCEPTION
    ABAP Program           SAPLMR1M
    Application Component  MM-IV
    A RAISE statement in the program "CL_GUI_DOCKING_CONTAINER======CP" raised the
      exception
    condition "CNTL_ERROR".
    Since the exception was not intercepted by a superior
    program, processing was terminated.
    Source code where the program terminated:
    CALL METHOD DOCK_AT_internal
         EXPORTING
             SIDE   = SIDE
             notify = space
         EXCEPTIONS
             CNTL_SYSTEM_ERROR = 1
             CNTL_ERROR = 2.
    CASE SY-SUBRC.
       WHEN 0.
       WHEN 1.
         RAISE CNTL_SYSTEM_ERROR.
       WHEN 2.
       >>>>  RAISE CNTL_ERROR.
       WHEN OTHERS.
         RAISE CNTL_ERROR.
    ENDCASE.

    When I tried checking, I understood that MIR4 transaction screen 6000 has docking container and when a screen has docking container the BDC fails in background. Any workaround other than BAPI for invoice posting as it is not of help in our requirement scenario as we have already checked.

  • 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

  • BDC not working for CATS_APPR_LITE

    Hi,
    Requirement: Auto-approval of time records for all employees (which are Released for Approval, status = 20)
    We tried to create a BDC program for transaction code CATS_APPR_LITE, it works for one time record. but when there are several time records (select all option is not there), the BDC is not working.
    Any idea / help.

    Simon,
    Requirement: Time record for reduced times should be approved by supervisor. we are using TS31000007 & BADI_CATS_APPROVAL to do this. this is working fine.
    But the requirement is to auto approve all time records (which are currently in approval with supervisor) on last day of the month. we want to use a batch job to do this.
    We tried using a BDC for CATS_APPR_LITE, but for several time records for several employees, the BDC is not working.
    Please advise.

  • Transparent Watermark not working, background turns white

    I have been sent a TIFF logo for a company and need to watermark some photos. I would like to do this via LR. I have version 4.4.
    I loaded the file into PS6, in order to change it to a Jpeg OR PNG.... to upload into the LR watermark edit area.
    I am unable to find PNG as an option in the "Save As" menu. So I tried "Save for Web".. I was able to save the file as a PNG, and when opened off the desktop, it does appear to be transparent. However, when uploaded into LR watermark graphic area... it suddenly has a white background again.
    I am seriously ripping my hair out. I have watched a zillion tutorial and read a bunch of recommendations... and it's still not working.... HELP ME PLEASE. There is obviously some little detail or setting that isn't the same...
    NOTE---> Not option for PNG in Save As menu....
    SAVING AS PNG IN THE "SAVE FOR WEB" MENU... (I also tried selecting PNG-24) .. neither worked.
    THE "TRANSPARENT" PNG File as it appears as a watermark.....

    It already is in RGB... tried that... still no SAVE AS menu.....  Also tried as 8bit and 16 bit....

  • 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 inside  the Workflow

    Hi,
    I created a BDC program and include it in the workflow as back ground task it not working .
    In the Business Object there it working fine. When I change it to foreground task in the workflow it working.
    If I declare as a  back ground it not working .
    Can you please tell me why this happening.
    Regards,
    Surjith

    Dear Sanjay,
    use BAPI "BAPI_MATERIAL_MAINTAINDATA_RT" or "MATERIAL_UPDATE_ALL_RETAIL" to manage Retail material.
    Gianluca

  • 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

  • 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 GB01

    Hi All,
    I have written a BDC program to upload data by GB01 tcode. In GB01 we have around 15 fields in my program after filling the first 8 fields i am using :  FLD 'BDC_OKCODE'    'DOWN' but, it is not working please see the below code. first 8 fields are overwritten by other one. How do i control this one.
      SCR 'SAPMGBUK' '0110'.
      FLD 'GLU1-TSL'      REC-AMOUNT.
      FLD 'RGBUK-O_V01'   REC-ACCOUNT.
      FLD 'RGBUK-O_V02'   REC-CONSACCT.
      FLD 'RGBUK-O_V03'   REC-DOCTYPE.
      FLD 'RGBUK-O_V04'   REC-LEDGERTYPE.
      FLD 'RGBUK-O_V05'   REC-RZZAFFILIATED.
      FLD 'RGBUK-O_V06'   REC-RZZAUTHORIZED.
      FLD 'RGBUK-O_V07'   REC-PROFITCENTER.
      FLD 'RGBUK-O_V08'   REC-RZZREINBASIS.
      FLD 'BDC_OKCODE'    'DOWN'.
      FLD 'RGBUK-O_V02'   REC-RZZRPTGREIND.
      FLD 'RGBUK-O_V03'   REC-LOB.
      FLD 'RGBUK-O_V04'   REC-RZZTRTYNO2.
      FLD 'RGBUK-O_V05'   REC-ZZCEDCO.
    FLD 'RGBUK-O_V06'   REC-LOB.
      FLD 'RGBUK-O_V07'   REC-ZZREFSYSID.
      FLD 'RGBUK-O_V08'   REC-ZZREIND.
      FLD 'GLU1-SGTXT'    HEADTEXT.
      FLD 'BDC_OKCODE'    'NEW'.

    I have just written a GB01 BDC as well and got the page down section to work with this code:
    It looks like you just need to change 'DOWN' to '=DOWN'.
    ---hope it works for you.
        PERFORM bdc_dynpro      USING 'SAPMGBUK' '0110'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=DOWN'.         "second
        PERFORM bdc_field       USING 'RGBUK-O_V01'
                                       it_input-prod_cat.    "Prod Catg
        PERFORM bdc_field       USING 'RGBUK-O_V02'
                                       it_input-cost_ctr.   "Cost Centre
        PERFORM bdc_field       USING 'RGBUK-O_V03'
                                       it_input-prod_des.   "Prod.Orig.Design.Ctr
        PERFORM bdc_field       USING 'RGBUK-O_V04'
        PERFORM bdc_field       USING 'RGBUK-O_V05'
                                       it_input-label.        . "Label
        PERFORM bdc_field       USING 'RGBUK-O_V06'
                                       it_input-exp.          "Expense
        PERFORM bdc_field       USING 'RGBUK-O_V08'
                                       it_input-material.     "Material
        PERFORM bdc_dynpro      USING 'SAPMGBUK' '0110'.
        IF wa_last IS INITIAL .
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=DOWN'.        "third
        ELSE.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=BOOK'.
        ENDIF.
    ---then you can reuse the same RGBUK-O_V fields

  • 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.

  • MIGO BDC not working

    I have created one RFC Function in that i have called the MIGO BDC.
    When i execute the RFC in SAP with the parametres the MIGO BDC works perfectly.
    But when i call the RFC through Legacy System with the same data it is not working.
    Can you pls. let me know if something has to be done, so that the BDC will also works from Legacy?

    go for mb01 instead of migo.
    or else.
    check the last two posts in this source
    Re: Reg: Item ok check box in MIGO

  • CUO1 - BDC not working in the background.

    Hello Experts,
    We are trying to create dependencies using CU01, when we recorded through LSMW we have got an error saying *for type c' lenght can be from 1 to 65535, ( * caution message arised in the field mapping step)*
    we went on with a work around with a BDC, while recording we didn't find any errors,also when processing the recording the system doesn't throw any status message.
    After creating a ABAP program with the recording, we are seeing the status message when we run them in the "A" all screen mode when we press enter it is able to create the dependency however the BDC is not able to run in the background throwing with the same status message ($ it is not a screen field).
    thanks
    Venkat

    When running in the mode 'A', the navigation should only be through the ok_code pop up and not by pressing enter. If you had to navigate to the next screen only by hitting the enter manually, there is a problem with the recording. Try to re-run the recording else manually add the code for the enter function with reference to a correct recording.
    Vikranth

  • 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 Not working in Background ?

    Hi ,
       we are having one RFC in which we have wriiten a BDC for Customer Mater creation. But this BDC is giving some problem with some screen when it has encountered Duplicate Address. We have taken a proper care in BDC with even this duplicate address recording. This even work fine when it is run in foreground.
    It is only giving problem when this RFC is been called from Other Application.
    Pl. help...
    Regards,
    Umesh

    hI,
           Many SAP transactions behave differently in online mode and in Batch mode and this mode is determined by the SY-BINPT variable that can be controlled using the OPTIONS command in addition to the CALL TRANSACTION.
    For example, the error message that usually comes in status bar while you are running the transaction online might appear in a popup window when you are running that in batch. This will make your fields disabled for input. This OPTIONS addition will remove this problem
    The way to use the OPTIONS addition.
    Declare a work area of type CTU_PARAMS.
    Fill the fields of CTU_PARAMS. The field NOBINPT should be set to ‘X’.
    This will set the SY-BINPT to space. So now the transaction which you will be calling will run in online mode.
    Example.
    clear X_OPTIONS.
    X_OPTIONS-DISMODE = 'E'.
    X_OPTIONS-UPDMODE = 'S'.
    X_OPTIONS-CATTMODE = ' '.
    X_OPTIONS-DEFSIZE = ' '.
    X_OPTIONS-RACOMMIT = ' '.
    X_OPTIONS-NOBINPT = 'X'.
    X_OPTIONS-NOBIEND = ' '.
    call transaction 'BP' using T_BDCDATA[] options from X_OPTIONS.
    Note:
    Do not use the MODE & UPDATE additions when you are using OPTIONS. The mode & update values are passed in the CTU_PARAMS structure.
    <b>Reward points</b>
    Regards

Maybe you are looking for

  • Need to fix item in services menu

    I am using OmniFocus as my task manager.  I have set up a keyboard shortcut for a clipping feature ("send to OmniFocus").  My keyboard shortcut is correct in System Preferences>keyboard>keyboard shortcuts>Services.  But when I use the mail.app and se

  • 11G Conditional Formatting : bug?

    Hello, I need some info on the conditional formatting in 11G. Has anyone seen behaviour like this before, probably a bug? Just for testing purposes I've a column with the values lower, higher and between. Initially I've added some background colourin

  • When Nokia will be available in the Republic of Ma...

    Use Nokia E7-00 with product code 059D0R3. With Anna had no problems. I hope with Nokia Belle will be like that.

  • Probably installing software on my PC

    I just purchased several software applications, and downloaded to my PC but when I go to install them they all come up with an error that says "Windows cannot access the specified device, path or file. You might not have the appropriate permissions t

  • Forgot my screen lock password

    how you change your password if you forget it