Call transaction KB21N processed by a program in background mode

Hi to all,
I call transaction KB21N using BDCDATA in a custom program. If I process this program in foreground mode all it's OK, but if I process the program in background mode, I have a runtime error with DUMP: RAISE EXCEPTION with exception condition CNTL_ERROR. This program has to be executed in background so a bapi exist to use instead of call transaction or something else?
Thank you very much,
regards
Antonio

HI Antonio,
The transaction you are dealing with is an SAP Enjoy transaction and for such transactions it is not recommended to do a BDC. YOu should search for  a BAPI for the same as you have already identified. Basically the enjoy transactions uses GUI controls which cannot be handled by BDC.
BAPI_ACC_ACTIVITY_ALLOC_POST may serve your purpose.
Regards,
ravi
Message was edited by:
        Ravi Kanth Talagana

Similar Messages

  • Is there any way to run signcode.exe program under background mode

    Hi everyone,
    I am finding the solutions to build the project automatically but the situation is still unchanged. When building the project i have use the signcode tool to sign my .cab files therefore the system shows me the "Enter Private Key Password" dialog and ask me to enter my password into the Password field.
    If all you guy have any ways for packing the project by the mechanism of the running signcode program under background mode. Below is my script.
    [b]signcode -spc ms.spc -v ms.pvk -n abc.cab -i URL -t http://timestamp.verisign.com/scripts/timstamp.dll abc.cab
    Thank you for your ideas and regards
    Tan

    Hi,
    you can use the tool signcode-pwd to automate the signing:
    http://www.stephan-brenner.com/blog/?page_id=9

  • Call external program in background mode

    Hi,
    I am creating a PO using bapi BAPI_PO_CREATE1 in exit USEREXIT_SAVE_DOCUMENT_PREPARE.
    I dont want to write the code in my exit. Instead I want to write the code in a Z program and call it in my exit.
    My Problem.
    How do I call my z program in my exit so that I can pass internal tables from my exit to the z program. Also I want to schedule the call of my external program for background processing.
    I am trying with SUBMIT ZPROG AND RETURN. But not able to pass an internal table.
    I tried PERFORM BAPI_PO_CREATE IN PRGRAM ZPROG, but in this case not able to schedule it in background.
    Please advise.
    Regards,
    Shobhit

    Hi Rich,
    Im setting runtime error:
    My Code in Exit: (xvbfa is the table which i wanna pass)
    concatenate 'SERVICEPO' sy-datum into l_key.
    export xvbfa = xvbfa
                  to shared buffer indx(st) id l_key.
    My Code in the called program ZMM_SERVICE_PO
    Runtime Errors         CONNE_IMPORT_WRONG_OBJECT_TYPE
    Exceptn                CX_SY_IMPORT_MISMATCH_ERROR
    Date and Time          05.12.2005 21:41:54
    ShrtText
         Error when attempting to IMPORT object "XVBFA".
    What happened?
         Error in ABAP application program.
         The current ABAP program "ZMM_SERVICE_PO" had to be terminated because one of
          the
         statements could not be executed.
         This is probably due to an error in the ABAP program.
         When importing the object "XVBFA", the object in the
         dataset had a different type from the target object in the program
         "ZMM_SERVICE_PO" (object types: field, field string/structure, table).
         table).
    Error analysis
         An exception occurred. This exception will be dealt with in more detail
         below. The exception, assigned to the class 'CX_SY_IMPORT_MISMATCH_ERROR', was
          not caught, which
          led to a runtime error. The reason for this exception is:
         The object "XVBFA" has a different object type in the dataset from
         that in the target program "ZMM_SERVICE_PO". (Object types: Field, flat
          structure,
         deep structure, flat table, deep table).
    Missing Handling of System Exception
        Program                                 ZMM_SERVICE_PO
    Trigger Location of Exception
        Program                                 ZMM_SERVICE_PO
        Include                                 ZMM_SERVICE_PO
        Row                                     43
        Module Name                             START-OF-SELECTION
    Source Code Extract
    Line  SourceCde
    REPORT  ZMM_SERVICE_PO.
    DATA: l_poheader      LIKE bapimepoheader.
    DATA: l_poheaderx     LIKE bapimepoheaderx.
    DATA: l_poitem        LIKE bapimepoitem     OCCURS 0 WITH HEADER LINE.
    DATA: l_poitemx       LIKE bapimepoitemx    OCCURS 0 WITH HEADER LINE.
    DATA: l_cond          LIKE BAPIMEPOCOND     OCCURS 0 WITH HEADER LINE.
    DATA: l_condx         LIKE BAPIMEPOCONDX    OCCURS 0 WITH HEADER LINE.
    DATA: l_poschedule    LIKE bapimeposchedule OCCURS 0 WITH HEADER LINE.
    DATA: l_poschedulex   LIKE bapimeposchedulx OCCURS 0 WITH HEADER LINE.
    DATA: l_purchaseorder LIKE bapimepoheader-po_number.
    DATA: l_return        TYPE BAPIRET2 OCCURS 0.
    DATA: l_error_found   TYPE c.
    DATA: l_show_messages TYPE c.
    DATA: l_eindt(10)     TYPE c.
    DATA: l_answer        TYPE c.
    DATA: l_VBAK          TYPE STANDARD TABLE OF VBAK WITH HEADER LINE.
    DATA: l_VBFA          TYPE STANDARD TABLE OF VBFA WITH HEADER LINE.
    DATA: xlips           TYPE STANDARD TABLE OF LIPS WITH HEADER LINE.
    *DATA: xvbfa           TYPE STANDARD TABLE OF vbfa WITH HEADER LINE.
    DATA xvbfa like vbfa.
    DATA: l_key(60) type c.
          concatenate 'SERVICEPO' sy-datum into l_key.
    >>>>> import xvbfa = xvbfa
                      from shared buffer indx(st) id l_key.
          delete from shared buffer indx(st) id l_key.
    Could you help.
    Regads,
    Shobhit

  • Calling a function from a DLL, exectution in background mode.

    Dear Experts,
    We have created an ABAP report the calls a function from a DLL file. If the report is executed in on-line mode the program calls and executes the function from the DLL, but if the ABAP programa is executed in background mode it doesnt calls the DLL function.
    Do you know a way to solve the problem when executing in background mode?
    Best regards.
    Antonio

    Hi Gabriel,
    Let me explain in details about my DLL function.
    We are importing the business partners from legacy system into the SAP CRM system, so at the moment we created the BP master data via BAPI, I get the name of the BP and this moment I call the function in the DLL file. I export the parameter name and I receive back a simplified string with the name reduced to a code. This code I get back from the dll it is insert in a Z table, so there is no interaction in the screen, all must be executed in background mode, because there are a lot of business partners to be converted in SAP system.
    I am sending my code for your considerations.
    Instancia a DLL
      CREATE OBJECT dll 'MTCODE.CPFONET'.
      IF sy-subrc NE 0.
        RAISE without_dll.
      ENDIF.
    Move para a tabela interna IT_NAME os valores recebidos na TI_NAME
      it_name[] = ti_name[].
    Para cada registro importado
      LOOP AT it_name.
        CLEAR v_string_ret.
        wa_matchcode-zregid     = it_name-zregid.
        wa_matchcode-name1_text = it_name-name1_text.
        v_string = it_name-name1_text.
        CONDENSE  v_string.
        TRANSLATE v_string TO UPPER CASE.
        CALL METHOD  OF dll 'SetNome' EXPORTING #1 = v_string.
        CALL METHOD  OF dll 'ExecMatch'.
        CALL METHOD  OF DLL 'GetMCData' = v_string_ret.
        FREE OBJECT dll.
      Preenche os campos do match-code de acordo com o retorno da DLL
        SPLIT v_string_ret
        AT '|'
        INTO wa_matchcode-zparmcln
             wa_matchcode-zparmcfn
             v_empty
             wa_matchcode-name_first
             wa_matchcode-name_last
             wa_matchcode-namemiddle.
      Adiciona o registro com o match-code correspondente na TE_MATCHCODE
        APPEND wa_matchcode TO te_matchcode.
      ENDLOOP.

  • Passing Variables Between Programs in Background Mode

    Hello,
    Can you pls. suggest how I can pass a variable from one program to the other while in the background mode.
    The Export and Import parameters do not work while in the background.
    Thanks.
    Amit

    Hi Amit,
    EXPORT/IMPORT works in Background mode provided the export & import both are done in background.
    Refer this program: it has export/import in background
    /people/prashant.patil12/blog/2007/02/20/displaying-alv-grid-in-background-job
    <b>*----
    Before the export, fill the data fields before CLUSTR
    </b>
      wa_index-aedat = sy-datum.
      wa_index-usera = sy-uname.
      EXPORT s_matnr
           TO DATABASE indx(st) FROM wa_index ID wa_index_key.
    <b>*----
    Before the import, fill the data fields before CLUSTR.
    </b>
      wa_index1-aedat = sy-datum.
      wa_index1-usera = sy-uname.
    To Import the selection screen data from Calling Program
      IMPORT i_mara
      FROM DATABASE indx(st) ID wa_index_key1 TO wa_index1.
      FREE MEMORY ID wa_index_key1.
    Message was edited by:
            Prashant Patil

  • CNTL_ERROR while running a custom report program in background mode

    Hi,
    I am running a report in background on daily basis. I am using cl_gui_custom_container class here and calling the constructor of this class. I am getting a CNTL_ERROR exception at this point. But if i run the same report directly, it is not throwing any exception. The problem is if i schedule it to background. I am not able to sort it out.
    I've written the following code below:
    I did apply the logic that you'd mentioned.
    I've implemented the code as below.
    IF  gr_container IS INITIAL.
    *** Check whether the program is run in batch or foreground
        IF CL_GUI_ALV_GRID=>OFFLINE( ) IS INITIAL.
    * Run in foreground
          CREATE OBJECT gr_container
            EXPORTING
              container_name = 'WORK_AREA_CONTAINER'.
          CREATE OBJECT lv_grid
            EXPORTING I_PARENT = gr_container.
        ELSE.
    * Run in background
          CREATE OBJECT lv_grid
            EXPORTING
              I_PARENT = gr_dockcontainer.
          ENDIF.
          ENDIF.
    i_parent_control = gr_dockcontainer.
            CREATE OBJECT m_base_splitter
            EXPORTING
              parent            = i_parent_control
              ROWS              = 1
              columns           = 2
            EXCEPTIONS
              cntl_error        = 1
              cntl_system_error = 2
              OTHERS            = 3.
            CALL METHOD m_base_splitter->get_container
            EXPORTING
              row       = 1
              column    = 2
              RECEIVING
              container = m_splitter_right_part
            EXCEPTIONS
              OTHERS    = 1.
    After I've implemented the above code I'm getting the following error in the batch job:
    Category               ABAP Programming Error
    Runtime Errors         OBJECTS_OBJREF_NOT_ASSIGNED
    Except.                CX_SY_REF_IS_INITIAL
    You attempted to use a 'NULL' object reference (points to 'nothing')
    access a component (variable: "M_BASE_SPLITTER").
    An object reference must point to an object (an instance of a class)
    before it can be used to access components.
    Either the reference was never set or it was set to 'NULL' using the
    CLEAR statement.
    Would you be able to help me in the above issue?
    Regards,
    Mandeep

    Hi Alexander,
    Yes I'd declared gr_dockcontainer as type ref to CL_GUI_DOCKING_CONTAINER. And I've now replaced the previous code and wwrote the below code :
    gr_container IS INITIAL.
    ***Check whether the program is run in batch or foreground
          IF CL_GUI_ALV_GRID=>OFFLINE( ) IS INITIAL.
    ***Run in foreground
            CREATE OBJECT gr_container
              EXPORTING
                container_name = 'WORK_AREA_CONTAINER'.
            CREATE OBJECT lv_grid
              EXPORTING
                I_PARENT = gr_container.
          ELSE.
    ***Run in background
            CREATE OBJECT gr_dockcontainer
              EXPORTING
                NAME = 'WORK_AREA_CONTAINER'.
          ENDIF.
        ENDIF.
    = gr_dockcontainer.
        CREATE OBJECT m_base_splitter
          EXPORTING
            parent            = i_parent_control
            ROWS              = 1
            columns           = 2
          EXCEPTIONS
            cntl_error        = 1
            cntl_system_error = 2
            OTHERS            = 3.
        CALL METHOD m_base_splitter->get_container
          EXPORTING
            row       = 1
            column    = 2
          RECEIVING
            container = m_splitter_right_part
          EXCEPTIONS
            OTHERS    = 1.
    But after implementing the above code I'm facing the same issue of CTRL ERROR- " GUI cannot be reached".
    Please guide me through this.
    Regards,
    Mandeep

  • Issue with ALV sceen called using BDC in new task and in background mode

    Hi Gurus,
    Need your expert advice. I am trying to call one transaction (IS AUTO - VELO) which has ALVs on screen. VELO is being called through BDC in NEW TASK in background. So, the new session is a Dialog session and SY-BATCH is initial here.
    In two different scenarios, I am getting error at two different places:
    a) As I can't call ALV directly, I am using docking container. This is giving issue during 'CREATE OBJECT' -> CONSTRUCTOR for cl_gui_alv_grid ->   if offline( ) is initial. (AS SY-BATCH is initial) -> call method me->set_registered_events_internal exporting events = lt_events. -> call method get_registered_events importing events = lt_events. -> IF H_CONTROL IS INITIAL.     RAISE CNTL_ERROR.   ENDIF.
    b) Call to OLE_FLUSH_CALL is happening, which is resulting into dump.
    I tried to search SDN and google, but couldn't find the solution. Thanks for your help :).
    Regards,
    Alok

    I'm not sure what is eating up your system resources, but .wmv files
    are considered to be a delivery format, and are not ideal for editing.
    I have never tried to edit screen capture video from any source, but you might consider
    upgrading to Expression Encoder 4 Pro (with codecs)... at least it includes H.264.
    Expression Encoder 4 Pro

  • Program in background mode failed

    I have developed an customized report which basically uploads a file from server and perform computation against the data in SAP.
    Tested ok when executed normally. But it fails to upload file when its set to background job.
    Used 'Open Dataset'
    Please advice.

    CALL FUNCTION 'WS_UPLOAD'
           EXPORTING
                FILENAME        = ZFNAME
                FILETYPE        = 'ASC'
           IMPORTING
                FILELENGTH      = RC
           TABLES
                DATA_TAB        = ITAB
           EXCEPTIONS
                FILE_OPEN_ERROR = 1
                OTHERS          = 2.
      IF SY-SUBRC <> 0 .
        DATA: LEN TYPE I.
        CLEAR ZLINE.
        OPEN DATASET ZFNAME IN TEXT MODE.
        IF SY-SUBRC = 0.
          DO.
            READ DATASET ZFNAME INTO ZLINE LENGTH LEN.
            IF SY-SUBRC <> 0.
              EXIT.
            ENDIF.
            ITAB-LINE = ZLINE.
            APPEND ITAB. CLEAR ITAB.
          ENDDO.
        ENDIF.
        CLOSE DATASET ZFNAME.
      ENDIF.
      IF ITAB[] IS INITIAL .
        ERR-FDATE = SDATE.
        ERR-REMARKS = "unable to find file".
        APPEND ERR.
      ENDIF.
    This is the portion for uploading the file.
    Anyway to debug when in backgroud?

  • Call transaction LM05 from Z program

    Hi,
    I need to call transaction LM05 from a Z program, and when LM05 finishes then continue with the process in Z program. But when i use CALL TRANSACTION 'LM05' the process does not return to program Z, when LM05 finishes,it returns to main screen of 'LM05' but not Z program.
    I change CALL TRANSACTION by SUBMIT zrlmob001 AND RETURN, but it happens the same, because transaction 'LM05' continuosly evaluates the system variable SY-TCODE, and therefore SY-TCODE contains code transaction 'ZXX'.
    it exists a way to call a LM05 transaction from Z program, and then continue in z program after LM05 finishes?
    can i create a user exit screen for transaction LM05 and use the user exit to continue with the process that i wish in Z program after call transaction 'LM05'?
    I'm in SAP version ECC 6.0.
    Thanks in advance
    Alejandro

    Hi,
    I want to share how i resolved this topic:
    I searched for user exit, badi and did'nt find a correct way to solved this issue. Also, i tried to create a screen exit for transaction LM05, but the dynpro 2100 of program SAPLLMOB is used for transaction LM02, LM03, LM05 and for each one show a diferent initial screen, this logic cannot be suplied with my custom screen.
    Finally, how the final option, i used a enhancement implementation to add code in SAP standard program RLMOB001, and the problem was resolved. i am in version SAP ECC6.0, in this version is posible to create enhancement implementation, and for support package and upgrade, SAP will not overwrite your custom code.
    Regards,
    Alejandro.

  • What are the parameters in Call transaction method?

    Hi ABAPER'S,
        Please give me what are the parameters in call transaction method?
    Thanks,
    Prakash

    Processing batch input data with CALL TRANSACTION USING is the faster of the two recommended data transfer methods. In this method, legacy data is processed inline in your data transfer program.
    Syntax:
    CALL TRANSACTION <tcode>
    USING <bdc_tab>
    MODE  <mode>
    UPDATE  <update>
    <tcode> : Transaction code
    <bdc_tab> : Internal table of structure BDCDATA.
    <mode> : Display mode:
    A
    Display all
    E
    Display errors only
    N
    No display
    <update> : Update mode:
    S
    Synchronous
    A
    Asynchronous
    L
    Local update
    A program that uses CALL TRANSACTION USING to process legacy data should execute the following steps:
    Prepare a BDCDATA structure for the transaction that you wish to run.
    With a CALL TRANSACTION USING statement, call the transaction and prepare the BDCDATA structure. For example:
    CALL TRANSACTION 'TFCA' USING BDCDATA
    MODE 'A'
    UPDATE 'S'.
    MESSAGES INTO MESSTAB.
    IF SY-SUBRC <> 0.
    <Error_handling>.
    ENDIF.
    The MODE Parameter
    You can use the MODE parameter to specify whether data transfer processing should be displayed as it happens. You can choose between three modes:
    A Display all. All screens and the data that goes in them appear when you run your program.
    N No display. All screens are processed invisibly, regardless of whether there are errors or not. Control returns to your program as soon as transaction processing is finished.
    E Display errors only. The transaction goes into display mode as soon as an error in one of the screens is detected. You can then correct the error.
    The display modes are the same as those that are available for processing batch input sessions.
    The UPDATE Parameter
    You use the UPDATE parameter to specify how updates produced by a transaction should be processed. You can select between these modes:
    A Asynchronous updating. In this mode, the called transaction does not wait for any updates it produces to be completed. It simply passes the updates to the SAP update service. Asynchronous processing therefore usually results in faster execution of your data transfer program.
    Asynchronous processing is NOT recommended for processing any larger amount of data. This is because the called transaction receives no completion message from the update module in asynchronous updating. The calling data transfer program, in turn, cannot determine whether a called transaction ended with a successful update of the database or not.
    If you use asynchronous updating, then you will need to use the update management facility (Transaction SM12) to check whether updates have been terminated abnormally during session processing. Error analysis and recovery is less convenient than with synchronous updating.
    S Synchronous updating. In this mode, the called transaction waits for any updates that it produces to be completed. Execution is slower than with asynchronous updating because called transactions wait for updating to be completed. However, the called transaction is able to return any update error message that occurs to your program. It is much easier for you to analyze and recover from errors.
    L Local updating. If you update data locally, the update of the database will not be processed in a separate process, but in the process of the calling program. (See the ABAP keyword documentation on SET UPDATE TASK LOCAL for more information.)
    The MESSAGES Parameter
    The MESSAGES specification indicates that all system messages issued during a CALL TRANSACTION USING are written into the internal table <MESSTAB> . The internal table must have the structure BDCMSGCOLL .
    You can record the messages issued by Transaction TFCA in table MESSTAB with the following coding:
    (This example uses a flight connection that does not exist to trigger an error in the transaction.)
    DATA: BEGIN OF BDCDATA OCCURS 100.
    INCLUDE STRUCTURE BDCDATA.
    DATA: END OF BDCDATA.
    DATA: BEGIN OF MESSTAB OCCURS 10.
    INCLUDE STRUCTURE BDCMSGCOLL.
    DATA: END OF MESSTAB.
    BDCDATA-PROGRAM = 'SAPMTFCA'.
    BDCDATA-DYNPRO = '0100'.
    BDCDATA-DYNBEGIN = 'X'.
    APPEND BDCDATA.
    CLEAR BDCDATA.
    BDCDATA-FNAM = 'SFLIGHT-CARRID'.
    BDCDATA-FVAL = 'XX'.
    APPEND BDCDATA.
    BDCDATA-FNAM = 'SFLIGHT-CONNID'.
    BDCDATA-FVAL = '0400'.
    APPEND BDCDATA.
    CALL TRANSACTION 'TFCA' USING BDCDATA MODE 'N'
    MESSAGES INTO MESSTAB.
    LOOP AT MESSTAB.
    WRITE: / MESSTAB-TCODE,
    MESSTAB-DYNAME,
    MESSTAB-DYNUMB,
    MESSTAB-MSGTYP,
    MESSTAB-MSGSPRA,
    MESSTAB-MSGID,
    MESSTAB-MSGNR.
    ENDLOOP.
    The following figures show the return codes from CALL TRANSACTION USING and the system fields that contain message information from the called transaction. As the return code chart shows, return codes above 1000 are reserved for data transfer. If you use the MESSAGES INTO <table> option, then you do not need to query the system fields shown below; their contents are automatically written into the message table. You can loop over the message table to write out any messages that were entered into it.
    Return codes:
    Value
    Explanation
    0
    Successful
    <=1000
    Error in dialog program
    > 1000
    Batch input error
    System fields:
    Name:
    Explanation:
    SY-MSGID
    Message-ID
    SY-MSGTY
    Message type (E,I,W,S,A,X)
    SY-MSGNO
    Message number
    SY-MSGV1
    Message variable 1
    SY-MSGV2
    Message variable 2
    SY-MSGV3
    Message variable 3
    SY-MSGV4
    Message variable 4
    Error Analysis and Restart Capability
    Unlike batch input methods using sessions, CALL TRANSACTION USING processing does not provide any special handling for incorrect transactions. There is no restart capability for transactions that contain errors or produce update failures.
    You can handle incorrect transactions by using update mode S (synchronous updating) and checking the return code from CALL TRANSACTION USING. If the return code is anything other than 0, then you should do the following:
    write out or save the message table
    use the BDCDATA table that you generated for the CALL TRANSACTION USING to generate a batch input session for the faulty transaction. You can then analyze the faulty transaction and correct the error using the tools provided in the batch input management facility.

  • Dif betwen BDC call transaction and session method

    Hi to all,
               This is my problem. I want to know, what is the difference between BDC call Transaction method and Session method. where the situation we can use these methods.
    I will be thankfull to all.

    Session Method :
       Asynchronous Processing.
       Transfers Data for Multiple Transactions
      Synchronous Database Update
      During Processing, No Transaction is started until the previous transction has been written to the database.
      A Batch Input Processing log is generated for each session
      Sessions can not be generated in Parallel.
      The Batch Input Porgram must not open a Session until it has closed the preceding Session.
    Call Transaction :
       Synchronous Processing.
       Transfers Data for a single transaction.
       Synchronous and Asynchronous Database updating both Possible.
       The Program Specifies which kind of updating is desired.
      Seperate LUW for the transaction.
      The System Performs a database commit immediately before and after the  CALL TRANSACTION Using Statement.
    No Batch Input Processing Log is generated.
    These are the differences between session and call transaction method.
    Call transaction is faster then session method. But usually we use session method in real time...because we can transfer large amount of data from internal table to database and if any errors in a session. Process will not complete until session get correct.

  • Scheduling call transaction

    can we schedule call transaction program for data transfer? how?

    Hi,
    You can schedule the call transaction method, you have written a custom program which is using a call transaction method and that custom program can be called in a scheduled background job as well.
    You can create a document with the help of a call transaction method and if the document is not created with some error, then we can create session for that for future processing as well.
    You can use it in either ways.
    Thanks,
    Mahesh.

  • Call transaction ME33K

    Dear Abapers,
    I have a problem when calling transaction ME33K from a custom program I develop. I know that we can pass agreement number using SAP memory with parameter ID = 'VRT'.
    This is the code to call transaction
          SET PARAMETER ID 'VRT' FIELD agreement_num.
          CALL TRANSACTION 'ME33K' AND SKIP FIRST SCREEN.
    agreement_num is filled with agreeement number.
    Before that I did same things to call ME23N and it works well.
    Definitely I use same formula:
          SET PARAMETER ID 'BES' FIELD po_num.
          CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
    po_num is filled with PO number.
    Could anybody help explain to me why this thing happened. Are there other any possible solution to call ME33K?
    Thanks
    Regards
    Hadi

    Hi Kranthi,
    Thank you for your answer.I was having the same problem but now It is ok.
    Thank you  I appreciate yout help too.
    Regrards
    William 

  • CNTL_ERROR call transaction miro

    In a project I developed a z fm   that integrate a idoc that  execute a  call transaction in miro. If I execute (in we19 in background mode) the fm does not give me ningun mistake, but if the entry is by external idoc i get the  following dump "CNTL_ERROR".
    I have been looking the sap not  311440 and my question is..
    I understand that when a extrenal idoc is  integrated in R3 the FM is executed s in background ??  because if i execute the same  code in a program in background mode i get the same error.
    why if  execute it via we19 in background mode it does not give me ningun mistake?
    Can you be that the user RFC who integrates the idoc does not have permissions?
    Or that directly as says the note 311440 cannot I execute call transaction to enjoy transactions an i have to use bapi ?
    Thanks

    Hi Gonzalez,
    You must not use a call transaction in any case if you have a BAPI as a working alternative. I suggest you check functions BAPI_INCOMINGINVOICE_*. This is more true for enjoy transactions.
    There are severall reasons for it, I guess in your case the system is trying to create an unexpected foreground screen object. I don't know why it would work in WE19 in background. There might be some differences in user parameters, for instance, some default user data might not be set (like company code, that would be typical).
    If you have to continue using call transaction, I suggest you set interface user for dialog and use it at least once to access MIRO directly to see if you can make all steps in your code.
    regards,
    Edgar

  • Call transaction - Standard menu greyed out

    Hi,
    we use call transaction statement in our ABAP program like this:
    set parameter id 'MPL' field wa_liste-warpl.
          call transaction 'IP03' and skip first screen.
    The transaction IP03 is called correctly and the initial screen is skipped fine.
    But some entries in the menu (like "change") are greyed out.
    If we open IP03 manual this menu entries are not greyed out.
    Is something wrong with our call transaction coding or how could we solve this?
    Thank you
    Kind regards
    Manfred

    Hi,
    Due to the below mentioned piece of code in include LIWP3O1L, some entries in the menu are coming greyed out.
    LIWP3O1L
    *--- If callmodus is active no navigation should be possible ---*
      IF NOT sy-calld IS INITIAL.
        PERFORM excl_navigation.
      ENDIF.
    *... CUA-STATUS setzten
      SET PF-STATUS cua_status EXCLUDING t_mod_cua.
    LIWP3FM0
    FORM excl_navigation.
    * maintenance plan transactions
        MOVE wc_fcode_anpl TO t_mod_cua-excl_cua.
        APPEND t_mod_cua.
        MOVE wc_fcode_IP02 TO t_mod_cua-excl_cua.
        APPEND t_mod_cua.
        MOVE wc_fcode_IP03 TO t_mod_cua-excl_cua.
        APPEND t_mod_cua.
        MOVE wc_fcode_IP10 TO t_mod_cua-excl_cua.
        APPEND t_mod_cua.
        MOVE wc_fcode_IP15 TO t_mod_cua-excl_cua.
        APPEND t_mod_cua.
        MOVE wc_fcode_IP16 TO t_mod_cua-excl_cua.
        APPEND t_mod_cua.
        MOVE wc_fcode_IP41 TO t_mod_cua-excl_cua.
        APPEND t_mod_cua.
        MOVE wc_fcode_IP42 TO t_mod_cua-excl_cua.
        APPEND t_mod_cua.
        MOVE wc_fcode_IP43 TO t_mod_cua-excl_cua.
        APPEND t_mod_cua.
        MOVE wc_fcode_IP50 TO t_mod_cua-excl_cua.
        APPEND t_mod_cua.
    * maintenance item transactions
        MOVE wc_fcode_anps TO t_mod_cua-excl_cua.
        APPEND t_mod_cua.
        MOVE wc_fcode_IP04 TO t_mod_cua-excl_cua.
        APPEND t_mod_cua.
        MOVE wc_fcode_IP05 TO t_mod_cua-excl_cua.
        APPEND t_mod_cua.
        MOVE wc_fcode_IP06 TO t_mod_cua-excl_cua.
        APPEND t_mod_cua.
        MOVE wc_fcode_IP17 TO t_mod_cua-excl_cua.
        APPEND t_mod_cua.
        MOVE wc_fcode_IP18 TO t_mod_cua-excl_cua.
        APPEND t_mod_cua.
    ENDFORM.                    " excl_navigation
    Regards,
    Harish

Maybe you are looking for

  • Launchctl ignores parameters in given launchd.plist, doesn't pass arguments

    *Here's my plist:* <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Debug</key> <true/> <key>ExitTimeOut</key> <integer>0</

  • Help in Flat File extraction

    I have downloaded data from R/3 Sand Box tables (BSEG & BKPF) and saved as .CSV files in BW Sand Box. Connection between them not yet established. Now i want to upload these flat files into ODS (0FIGL_O02) using 0FI_GL_4 datasource Assigned FF source

  • Script to fill the database for a tutorial

    Hi, I'm looking for a script to fill either the data volumes or the log volumes of a MaxDB 7.6.00.35 with sample data. I tried with x_python filldb.py but I got the error <i>SQLError: sql.SQLError: [-4004] (at 30) Unknown table name: INFO_SYSDD_SERVE

  • Saving MIDI edits in GB3 - is it possible?

    Don't see any obvious way via Save/Save As options. Love how easy it is to edit MIDI in GB, ashame you can't save it in anything other than proprietary GB .band or as an iTunes/iPod file... ;-( And is there a way to play an imported .mid through an e

  • Restore from Backup...

    My iPod has been freaking out lately. I use Windows Vista, and I can't really backup all my music. I use two computers to put music on my iPod so it would be a poor unfortunate event if i were to lose all my music. iTunes prompts me to "set up my ipo