Launching WorkFlow when are executing ImportManagerBatch

Hello together!
I am trying to use the ImportManagerBatch to load date into repository and apply launching WorkFlow automatically.
My WorkFlow set Trigger Actions = Record Import .
When are executing MDM Import Manager function, I assign my WorkFlow in Dialog window, and Import Manager and WorkFlow works fine.
In the ImportManagerBatch .ini file no options for setting my WorkFlowName.
Does anybody have an idea how to resolve this problem?
Thank you very much for your help!

Hi Alexsey
  This setting is saved in the Import Manager maps. If you use maps saved with a workflow assigned in the Import Manager Batch, it should work fine.
Hope this helps you.
Thanks
Alexander
Note:Please mark the reward points, if found useful.

Similar Messages

  • Launch a WorkFlow when AdminRole assigned

    How can I launch a custom workflow when a user has an AdminRole assigned to them?
    Or, is there a general way of launching workflows when user's are updated?
    I thought about modifying the Update User workflow but I wonder if there's a cleaner way...

    Add an activity to the Update User workflow that calls your own workflow - I don't see anything "dirty" or "ugly" about this.

  • Workflow issue - When i execute the workitem it just disappears

    Hi
    i am learning workflow. i am just following some instructions on one of the tutorials and i developed a simple workflow for editing material number when a material is created. i create the material in mm01 and the event gets triggered and i get the work item in my inbox. When i execute the workitem it just disappears and comes into my outbox. I am not able to go to the edit screen of the material( mm02) what am i missing? if i only use task then it works fine without any issues, if i include the same task in a workflow and trigger it does not open mm02. plz help
    ~Suresh

    Have you checked the workflow log ?
    If not in your business work place, got to Outbox --> Work Items executed by me
    The click on the workflow log button. Analyze the log.
    There are various reasons why this can happen, so cant really say much about why this issue is occurring without more details.
    Also you will probably get better answers if post this in the Workflow forum than in the ABAP forum.
    Regards,
    Srihari

  • Error when launching Workflow Editor

    Hi gurus,
    I am expriencing an error when i try to launch the Workflow editor from the Workflow definition page (Actions -> Launch Workflow editor). The error is:
    Unable to load resource: http://jawe.enhydra.org/twe.jnlp
    I have the latest JRE installed on my windows machine, and i am running Internet Explorer 9.
    Thank you in advance,
    Simion

    Hi Simion,
    Make sure the together editor is installed on your laptop. Try saving the xpdl file from workflow definition to your laptop first and then launch the editor and open it. Also, check out comments from Rob in the message below.
    ESourcing Workflow - SRM UWL integration?
    If you still have problems, let us know.
    Regards,
    Vikram

  • When are Workflows generated from Integration Processes?

    Hi Friends
    When are Workflows generated from Integration Processes?
    regards
    Sam

    Hello Samuel,
    Workflows are build in ABAP engine when you implement your Integration Scenario. So with each Int. Szen. saved in Int. Repository you will get your ABAP workflow in the ABAP stack.
    When starting the Integration scenario the workflow history/log in ABAP stack is filled with the first step within your Integration Scenario which is placed after your Start step and using an internal workflow process step.
    So you won´t find here explicitly documented send and receive steps in the workflow log (SXMB_MONI_BPE) but transform steps, decision steps etc.... .
    Send and receive steps are displayed in SXMB_MONI connected to PI partner (process engine).
    So when starting with using BPM it is a little bit confusing to understand how to read both logs and put their information together.
    regards
    Dirk

  • He DTPu2019s are failing when we execute for the 6th or 7th time.Defaultly proc

    Hi,
    Please the see following issue which we are getting both in the BI development and BI Production servers for the one Client.
    The error which we are facing is as follows:
    The database returned a value containing an error.
    The above error is occurring when we are executing the DTP (that is from PSA to Info cube) for the 6th time or 7th time.
    Even the error is not for the specific DTP.
    All the DTPu2019s are failing when we execute for the 6th or 7th time.Defaultly process chains are failing.
    thanks

    goto sm37 and check wht the job has failed. See in st22 if you have any dump.

  • I'm following Firefox Help for Windows XP on "clear cookies & cache." When I open Firefox & follow the Help steps (click on History, Tools, etc.) these aren't active links. I'm clicking on a Help display; no actions are executed. ???

    (On desktop PC) When I open Firefox & follow the Help steps (click on History, Tools, etc.), these aren't active links. I'm clicking on a Help display; no actions are executed. Cookies & cache aren't cleared.

    Make sure that you do not run Firefox in permanent Private Browsing mode.
    *https://support.mozilla.org/kb/Private+Browsing
    To see all History and Cookie settings, choose:
    *Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    *Deselect: [ ] "Always use private browsing mode"

  • Workflow Activities not executing in Parallel

    Hi,
    I am using Oracle Workflow as a dependency management system to load a Data Warehouse.
    Workflow Activities are used to execute a custom PL/SQL wrapper that kick off Oracle Warehouse Builder (OWB) mappings that load target tables with source system data.
    This process works correctly and data is loaded into the Data Warehouse as expected.
    However, when I create a Workflow with activities in parallel they are not loaded concurrently, they load sequentially instead.
    ie.
    START
    => ACTIVITY1 =>
    => ACTIVITY2 =>
    => ACTIVITY3 =>
    AND => END
    In the example above I would expect all 3 Activities to run in parallel, then wait until all 3 are completed at the AND condition.
    All 3 Activities above are DEFERRED to the Background Engine.
    After executing the Workflow and viewing the Workflow Public View WF_ITEM_ACTIVITY_STATUSES_V, it displays all of the Activities in DEFERRED status as expected.
    Workflow then proceeds to execute each Activity one at a time, instead of all 3 at once.
    Any ideas how to execute all 3 Activities in Parallel?
    Thanks.

    Hi,
    If the activities are all PL/SQL, then the Workflow Engine doesn't run anything in parallel - there is only one engine processing the activities. The theory is that it runs so quickly it will look like it's in parallel with no real effect.
    So what you are getting is expected behaviour - it's just that because you have deferred it to the background engine, you have a greater opportunity to see how the engine works.
    HTH,
    Matt
    Alpha review chapters from my book "Developing With Oracle Workflow" are available on my website:
    http://www.workflowfaq.com
    http://forum.workflowfaq.com
    NEW! - WorkflowFAQ Blog at http://thoughts.workflowfaq.com

  • [Windows] file.url throw error when application executable in root directory

    Here is the bugbase ticked: Bug#3940278 - [Windows] file.url throw error when application executable in root directory
    If you launch AIR application packaged as bundle from root directory and try to get url property of any file you get IllegalOperationError.
    No matter what file url property you try to get.
    It's a big problem when you distribute your application on CD disks or flash drive.
    I'd like to ask everyone affected by this issue to take a minute and vote for the following bug.
    Thanks.

    I checked all deployment descriptions and there are no references to t3://localhost:7001. Few months back, I had the complete clustering setup working on 2 machines and now when I deploy my application on same configuration, it fails with t3://localhost:7001 unreachable error. I created a new cluster configuration on one machine with 2 managed server and it deploys fine. Can not figure out what has changed ?

  • How to avoid launching Labview when invoking VI by Teststand

    Hi, friends.
    I'm a learner of teststand. I wrote some VIs by Labview. Now I want to invoke them in teststand environment. But when I run the sequence. Labview will be automatically launched. How to avoid launching Labview when I run the sequence?
    Thanks.
    Solved!
    Go to Solution.

    I'm not sure that I follow what you are saying..  But it sounds like when the VI is called, the LabVIEW development software is started and you want to avoid that.
    If you create an executable or dll and call that from within TestStand, it should not call the development environment.  You would need to have the LabVIEW run-time engine installed on the target PC. 
    It has been many years since I've used TestStand with LV, so my memory may not be accurate.  I think the above had worked for me.  However, it seems that I recall something about having the LV code in debug mode causing it to open the development environment.... but it's a distant memory.    You're not using breakpoints where the LV VI is being called, are you?
    R

  • Automatically exectue workflow when I connect to a certain network.

    Hi.
    I'm new to automator, but I have created some usefull workflows.
    My questions is:
    Is it possible to automatically execute a workflow when I connect to a cartain network using AirPort?
    Today the workflow is saved as a program that I have to start manually when I'm connected..
    MacBook   Mac OS X (10.4.9)  

    so being really bad at these things i looked for these dns settings but couldn't find them. also if it makes any difference, this isn't a new network and my brother's mac was getting internet access just fine until i tried to connect to the network as well, since then neither of us have been able to connect to the internet for the same reason (and i think we are connected to the router, but can't get the internet) BUT, his roomate has no problem with the internet using windows

  • BUPR_BUP does not appears as option in SWEC(bor objects to launch Workflow)

    Hi all.
    I configured a workflow in SAP CRM 7 to be executed when changing an employee for one BUPA.
    The problem I have is trying to add the object to the SWEC to launch it.
    I can select BUS1006, BUS1006005...but these objects only become usefull to launch a workflow when you change a general data field (BUT00..). But not BUT050 (employees relactionships  for one BUPA).
    I found two objects to use for this issue: BUS1006003 (business partner employee relationship), and BUS1006012 (Business PArtner , contact person, comercial employee relationship).
    I tryed to include them into the SWEC list, but that´s not posible . SAP gives a warning message "type business object it´s not compatible with BUPA_BUP object". That´s true, I started debbuggin that transaction to understand where the checks where done, and if we take a look at TCDOB table, the correct object to select for BUT050 modifications  should be BUPR_BUB.
    I founded this object everywhere in internet, but if I look for it to write it at SWEC , this object isn´t available.
    If I save it anyway, ignoring SAP warnings, workflow is not launched.
    Finally I understand my problem is that I should user the object BUPR_BUB instead the BUPA_BUP for this kind of modifications and acess to BUS1006003, but I don´t have this object to select it a SWEC.
    I just have these options:
    AENNR     
    BANK     
    BUPA_BUP     
    CRM_ORDER     
    FACTORYCAL     
    FEATURE     
    HOLIDAYCAL
    NRINTERVAL
    NRKROBJ     
    RELOBJECTS     
    SWE_CD_TST     
    So, how can I launch my workflow to work whith employees for BUPA ? I ´m starting to believe is not posible.
    Thank you very much in advance

    OK, it´s ok, now.
    I tryed again and I ignored SAP warnings and the no visivility of this parameter, and I wrote it manually: BURP_BUB, and BUS1006003. Then , If you check possible fields to control conditions, you can see now the BUT50 table. A new sucess.
    I configured swetypv with bus1006003, PFTC with this bus1006003 and the workflow task, and it runs.
    So, It´s a SAP problem, I guess. It solved if you ignored it and its warnings and write it manually .
    Thanks.

  • Installing WorkFlow with ARES, Form Manager and Forms

    Hi All,
    I'm having issues when trying to install WorkFlow with ARES, Form Manager and Forms.
    I've followed these steps:
    1. Installed Forms v. 7.1
    2. Installed Form Manager v. 7.0.1
    3. Installed ARES v. 7.0 (using a trust directory with a keyfile, etc.)
    4. Installed Workflow v. 7.0.1 with Turnkey option checked.
    5. Ran configuration manager.
    The progress gets to 12% then displays the error code "LCMerror101" with the message "Livecycle module pdfagent-client could not be copied to working directory".
    I don't know what this error means, can someone help me?? I know the issue isn't related to disk space (20+ gigs free) and I'm using the administrator account to install. Any suggestions or tidbits of info would be much appreciated.
    Thanks,
    Stone.

    Here's a copy of the log file. lcm.log
    [2006-02-21 14:11:34,437], Runnable bean context: My Action (bean23), com.adobe.idp.install.lcm.LCMProcessManager, INFO , Copying component to working dir: com.adobe.idp.install.lcm.config.Component@857327[monitorui,../components/monitorui,./wor king/monitorui]
    [2006-02-21 14:11:36,750], Runnable bean context: My Action (bean23), com.adobe.idp.install.lcm.LCMProcessManager, INFO , Copying component to working dir: com.adobe.idp.install.lcm.config.Component@14b2db7[xmlform,../components/xmlform,./workin g/xmlform]
    [2006-02-21 14:11:38,718], Runnable bean context: My Action (bean23), com.adobe.idp.install.lcm.LCMProcessManager, INFO , Copying component to working dir: com.adobe.idp.install.lcm.config.Component@a65760[fontmanager,../components/fontmanager,. /working/fontmanager]
    [2006-02-21 14:11:48,312], Runnable bean context: My Action (bean23), com.adobe.idp.install.lcm.LCMProcessManager, INFO , Copying component to working dir: com.adobe.idp.install.lcm.config.Component@1e140bf[registry,../components/registry,./work ing/registry]
    [2006-02-21 14:12:30,593], Runnable bean context: My Action (bean23), com.adobe.idp.install.lcm.LCMProcessManager, INFO , Copying component to working dir: com.adobe.idp.install.lcm.config.Component@161bfa3[pof,../components/pof,./working/pof]
    [2006-02-21 14:12:32,390], Runnable bean context: My Action (bean23), com.adobe.idp.install.lcm.LCMProcessManager, INFO , Copying component to working dir: com.adobe.idp.install.lcm.config.Component@6c9220[workflow,../components/workflow,./worki ng/workflow]
    [2006-02-21 14:12:35,515], Runnable bean context: My Action (bean23), com.adobe.idp.install.lcm.LCMProcessManager, INFO , Copying component to working dir: com.adobe.idp.install.lcm.config.Component@1ed7524[fm,../components/formmanager,./working /fm]
    [2006-02-21 14:12:39,921], Runnable bean context: My Action (bean23), com.adobe.idp.install.lcm.LCMProcessManager, INFO , Copying component to working dir: com.adobe.idp.install.lcm.config.Component@a5c9f1[pdfagent-client,../components/pdfagent- client,./working/pdfagent-client]
    [2006-02-21 14:12:39,921], Runnable bean context: My Action (bean23), com.adobe.idp.install.lcm.LCMProcessManager, ERROR, Could not copy components
    com.adobe.idp.install.lcm.LCMException: Could not copy components
    at com.adobe.idp.install.lcm.LCMProcessManager.copyComponentsToWorkingDirectory(LCMProcessMa nager.java:463)
    at MyAction.execute(MyAction.java:165)
    at com.installshield.wizard.RunnableWizardBeanContext.run(Unknown Source)
    Caused by: com.adobe.idp.install.lcm.LCMException: Illegal state found: File does not exist
    at com.adobe.idp.install.lcm.LCMProcessManager.copyDirOrFile(LCMProcessManager.java:554)
    at com.adobe.idp.install.lcm.LCMProcessManager.copyDirOrFile(LCMProcessManager.java:508)
    at com.adobe.idp.install.lcm.LCMProcessManager.copyComponentsToWorkingDirectory(LCMProcessMa nager.java:459)
    ... 2 more
    [2006-02-21 14:12:40,015], Runnable bean context: My Action (bean23), MyAction, ERROR, LCMerror101{pdfagent-client}
    com.adobe.idp.install.lcm.LCMException: Could not copy components
    at com.adobe.idp.install.lcm.LCMProcessManager.copyComponentsToWorkingDirectory(LCMProcessMa nager.java:463)
    at MyAction.execute(MyAction.java:165)
    at com.installshield.wizard.RunnableWizardBeanContext.run(Unknown Source)
    Caused by: com.adobe.idp.install.lcm.LCMException: Illegal state found: File does not exist
    at com.adobe.idp.install.lcm.LCMProcessManager.copyDirOrFile(LCMProcessManager.java:554)
    at com.adobe.idp.install.lcm.LCMProcessManager.copyDirOrFile(LCMProcessManager.java:508)
    at com.adobe.idp.install.lcm.LCMProcessManager.copyComponentsToWorkingDirectory(LCMProcessMa nager.java:459)
    ... 2 more
    [2006-02-21 14:12:40,031], Runnable bean context: My Action (bean23), MyAction, ERROR, ErrorCode: LCMerror101, ErrorStr: Livecycle module pdfagent-client could not be copied to working directory.

  • Photoshop CS6 won't launch and when it does it's really slow...help?

    Hi,
    So my copy of Photoshop CS6 sometimes won't launch and when it does manage to launch fully, it's really slow. I mean ridiculously slow. The only times when I can get it to run even remotely quick is if I shut down my computer, and then restart it and then start up Photoshop CS6 as the first program. Even then it slows down after a while. (And I only have a firefox browser open usually, never more than a couple of tabs at once, so it's not a bandwidth issue)
    Here are my comp specs:
    Samsung
    Processor:
    AMD A6-3420M APU with
    Radeon (Tm) HD graphics 1.50 ghz
    Installed Memory (RAM) - 4.00 (3.48 usable)
    64 Bit operating System running on Windows 7 home premium, service pack 1
    I also did just recently install the new update Adobe had for Photoshop, so that's up to date.
    It's getting really frustrating! I have another program I'm using in the meantime (Paint tool Sai), but I'd really like to use Photoshop CS6.....
    Any help would be greatly appreciated!

    Make sure you updated the drivers from AMD's website, not Microsoft.
    Make sure you are running the 64 bit version of Photoshop, not 32 bit.
    Disable all third party plugins, and try disabling system utilities (we've seen font managers, antivirus, disk backup software, etc. cause slowdowns due to bugs in those utilities).

  • Problem when I execute program SCM in background

    Hi experts,
        I am with problem when I execute a program (SCM) in background. I inserted a new field (estoque_seg(10)) and the process stopped at execute in background.When I call transaction and press F8, works but for this, I need jump the consistence  IF sy-batch IS INITIAL....Dont has any bath imput, only functions. Any idea?
    Follow below the code:
    Estrutura para tabela ENTRADA
    DATA: BEGIN OF st_entrada,
            matnr(40)            TYPE c,
            werks(20)            TYPE c,
            ponto_abas(10)       TYPE c,
            estoque_max(10)      TYPE c,
            cobertura(10)        TYPE c,
            estoque_seg(10)      TYPE c, " Erlon Lourenço 20/01/2011
          END OF st_entrada.
    Estrutura para tabela de LOG
    *TYPES: BEGIN OF st_saida,
           pernr(8)             TYPE c ,
           date(10)             TYPE c,
           er_contribuition(15) TYPE c,
           tax(15)              TYPE c,
           msg_erro(80)         TYPE c,
         END OF st_saida.
    Tabela para obter descricao da mensagem
    *DATA: ti_saida TYPE STANDARD TABLE OF st_saida WITH HEADER LINE
                                                  INITIAL SIZE 0.
    Tabela que recebera o arquivo texto
    DATA: BEGIN OF ti_entrada OCCURS 0.
            INCLUDE STRUCTURE st_entrada.
    DATA: END OF ti_entrada.
    DATA: BEGIN OF it_matid OCCURS 0,
      matnr TYPE /sapapo/matkey-matnr,
      matid TYPE /sapapo/matkey-matid,
    END OF it_matid.
    DATA: BEGIN OF it_locid OCCURS 0,
      locno TYPE /sapapo/loc-locno,
      locid TYPE /sapapo/loc-locid,
    END OF it_locid.
    DATA: BEGIN OF it_matlotsz OCCURS 0,
      target_dur TYPE /sapapo/matlotsz-target_dur,
      END OF it_matlotsz.
    DATA:        wa_matloc       LIKE /sapapo/matloc   OCCURS  0 WITH HEADER LINE,
                 wa_matlsim      LIKE /sapapo/matlsim  OCCURS  0 WITH HEADER LINE,
                 wa_matlotsz     LIKE /sapapo/matlotsz OCCURS  0 WITH HEADER LINE.
    Variáveis Globais
    DATA: v_tabix   TYPE sy-tabix,
          v_vrsioid TYPE /sapapo/apo01-vrsioid,
          v_tam     TYPE i.
        Select-Options & Parameters
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS:  p_versao    TYPE /sapapo/apo01-vrsioex OBLIGATORY DEFAULT '000',
                 p_abas  AS CHECKBOX  ,
                 p_est   AS CHECKBOX  ,
                 p_cober AS CHECKBOX  ,
                 p_estsg AS CHECKBOX.   " ERLON LOURENCO - 20/01/2012 - Estoque Segurança
    SELECTION-SCREEN END OF BLOCK b1.
        Start-of-Selection
    START-OF-SELECTION.
      PERFORM consiste.
      PERFORM f_upload.
      PERFORM f_processa_batch.
      PERFORM f_saida_dados.
      MESSAGE i000 WITH 'Processo encerrado com Sucesso'.
    END-OF-SELECTION.
    *&      Form  F_UPLOAD
          text
    -->  p1        text
    <--  p2        text
    FORM f_upload .
      DATA: lc_file TYPE string.
      TYPES: BEGIN OF st_ent,
                cam(80),
             END OF st_ent.
      DATA: ti_ent TYPE STANDARD TABLE OF st_ent WITH HEADER LINE
                                                  INITIAL SIZE 0.
      RANGES: r_file       FOR zget0001-field_content.
      r_file[] = zbs_constantes=>obter( i_bukrs = space i_field = 'FILE' i_process = 'PONTO-REAB' ).
      READ TABLE r_file INDEX 1.
      lc_file = r_file-low.
      CLEAR: ti_entrada,
             ti_entrada[],
             ti_ent,
             ti_ent[].
    abrir arquivo para leitura
      OPEN DATASET lc_file FOR INPUT  IN TEXT MODE ENCODING DEFAULT.
      IF sy-subrc NE 0.
        MESSAGE i000 WITH text-e01.
        STOP.
      ENDIF.
    Leitura de arquivos
      DO.
        READ DATASET lc_file INTO ti_ent.
        IF sy-subrc <> 0.
          EXIT.
        ENDIF.
        APPEND ti_ent.
      ENDDO.
    Fechamento do arquivo
      CLOSE DATASET lc_file.
      LOOP AT ti_ent.
        SPLIT ti_ent AT ';' INTO ti_entrada-matnr ti_entrada-werks ti_entrada-ponto_abas ti_entrada-estoque_max ti_entrada-cobertura ti_entrada-estoque_seg.
        APPEND ti_entrada.
      ENDLOOP.
    ENDFORM.                    " F_UPLOAD
    *&      Form  F_PROCESSA_BATCH
          text
    -->  p1        text
    <--  p2        text
    FORM f_processa_batch .
      LOOP AT ti_entrada.
        v_tabix = sy-tabix.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            input  = ti_entrada-matnr
          IMPORTING
            output = ti_entrada-matnr.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            input  = ti_entrada-ponto_abas
          IMPORTING
            output = ti_entrada-ponto_abas.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            input  = ti_entrada-estoque_max
          IMPORTING
            output = ti_entrada-estoque_max.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            input  = ti_entrada-cobertura
          IMPORTING
            output = ti_entrada-cobertura.
    IA - ERLON LOURENCO - 20/01/2012
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            input  = ti_entrada-estoque_seg
          IMPORTING
            output = ti_entrada-estoque_seg.
    FA - ERLON LOURENCO - 20/01/2012
        MODIFY ti_entrada INDEX v_tabix.
      ENDLOOP.
      CLEAR: it_matid,
             it_matid[],
             it_locid,
             it_locid[],
             wa_matlsim,
             wa_matlsim[],
             wa_matloc,
             wa_matloc[].
      SELECT matnr matid INTO TABLE it_matid FROM /sapapo/matkey
      FOR ALL ENTRIES IN ti_entrada WHERE matnr = ti_entrada-matnr.
      SELECT locno locid INTO TABLE it_locid FROM /sapapo/loc
      FOR ALL ENTRIES IN ti_entrada WHERE locno = ti_entrada-werks.
      IF p_versao = '000'.
        LOOP AT ti_entrada.
          READ TABLE it_matid WITH KEY matnr = ti_entrada-matnr.
          IF sy-subrc = 0 .
            READ TABLE it_locid WITH KEY locno = ti_entrada-werks.
            IF sy-subrc = 0.
              SELECT SINGLE * INTO wa_matloc FROM /sapapo/matloc WHERE matid = it_matid-matid  AND
                                                                       locid = it_locid-locid.
              IF sy-subrc = 0.
                IF p_abas = 'X'.
                  wa_matloc-reord    = ti_entrada-ponto_abas.
                ENDIF.
                IF p_est = 'X'.
                  wa_matloc-maxstock = ti_entrada-estoque_max.
                ENDIF.
                " IA - Erlon Lourenço - 23/01/2012
                if p_estsg = 'X'.
                  wa_matloc-safty    = ti_entrada-estoque_seg.     " Erlon Lourenço - 23/01/2012
                endif.
                "FA - Erlon Lourenço - 23/01/2012
                IF p_abas  = 'X'   OR
                   p_est   = 'X'   OR
                   p_estsg = 'X'.      " Erlon Lourenço - 23/01/2012
                  APPEND wa_matloc TO wa_matloc.
                ENDIF.
                SELECT SINGLE * INTO wa_matlotsz FROM /sapapo/matlotsz WHERE lszid = wa_matloc-lszid.
                IF sy-subrc = 0.
                  IF p_cober = 'X'.
                    wa_matlotsz-target_dur = ti_entrada-cobertura.
                    APPEND wa_matlotsz TO wa_matlotsz.
                  ENDIF.
                ENDIF.
              ENDIF.
            ENDIF.
          ENDIF.
        ENDLOOP.   " LOOP AT ti_entrada.
      ELSE.
    Verifica versáo para saber se preenche a tabela wa_matlsim
        SELECT SINGLE vrsioid INTO v_vrsioid FROM /sapapo/apo01 WHERE vrsioex = p_versao.
        IF sy-subrc = 0.
          SELECT * INTO TABLE wa_matlsim FROM /sapapo/matlsim WHERE simid = v_vrsioid.
          IF wa_matlsim[] IS NOT INITIAL.
            LOOP AT ti_entrada.
              READ TABLE it_matid WITH KEY matnr = ti_entrada-matnr.
              IF sy-subrc = 0 .
                READ TABLE it_locid WITH KEY locno = ti_entrada-werks.
                IF sy-subrc = 0.
                  READ TABLE wa_matlsim WITH KEY matid = wa_matloc-matid
                                                 locid = wa_matloc-locid.
                  IF sy-subrc = 0.
                    wa_matlsim-reord    = ti_entrada-ponto_abas.
                    wa_matlsim-maxstock = ti_entrada-estoque_max.
                    wa_matlsim-safty    = ti_entrada-estoque_seg.     " Erlon Lourenço - 23/01/2012
                    MODIFY wa_matlsim INDEX v_tabix.
                  ENDIF.
                ENDIF.
              ENDIF.
            ENDLOOP.  " LOOP AT ti_entrada.
          ENDIF.     " IF wa_matlsim[] IS NOT INITIAL.
        ENDIF.     " IF sy-subrc = 0. 1º
      ENDIF.     "IF p_versao = '000'
    Funcáo que atualiza campos nas bases de dados.
      CALL FUNCTION '/SAPAPO/DM_PRODUCTS_POST'
        EXPORTING
          iv_vb         = 'U'
        TABLES
          it_matloc     = wa_matloc
          it_matlsim    = wa_matlsim
          it_matlotsz   = wa_matlotsz
        EXCEPTIONS
          not_qualified = 1
          insert_failed = 2
          update_failed = 3
          OTHERS        = 4.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " F_PROCESSA_BATCH
      FORM  BDC_DYNPRO
    *&      Form  F_SAIDA_DADOS
          text
    -->  p1        text
    <--  p2        text
    FORM f_saida_dados .
    IF ti_saida[] IS NOT INITIAL.
       DATA: lc_file TYPE string.
       lc_file = p_erros.
       CALL FUNCTION 'GUI_DOWNLOAD'
         EXPORTING
      BIN_FILESIZE                    =
           filename                        = lc_file
      FILETYPE                        = 'ASC'
         TABLES
           data_tab                        = ti_saida
      FIELDNAMES                      =
        EXCEPTIONS
          file_write_error                = 1
          no_batch                        = 2
          gui_refuse_filetransfer         = 3
          invalid_type                    = 4
          no_authority                    = 5
          unknown_error                   = 6
          header_not_allowed              = 7
          separator_not_allowed           = 8
          filesize_not_allowed            = 9
          header_too_long                 = 10
          dp_error_create                 = 11
          dp_error_send                   = 12
          dp_error_write                  = 13
          unknown_dp_error                = 14
          access_denied                   = 15
          dp_out_of_memory                = 16
          disk_full                       = 17
          dp_timeout                      = 18
          file_not_found                  = 19
          dataprovider_exception          = 20
          control_flush_error             = 21
          OTHERS                          = 22
       IF sy-subrc <> 0.
         MESSAGE i005 WITH 'Error to unload file !'.
         STOP.
       ENDIF.
    ENDIF.
    ENDFORM.                    " F_SAIDA_DADOS
    *&      Form  CONSISTE
          text
    -->  p1        text
    <--  p2        text
    FORM consiste .
      IF p_abas  IS INITIAL  AND
         p_est   IS INITIAL  AND
         p_cober IS INITIAL AND
         p_estsg IS INITIAL.   " ERLON LOURENCO - 20/01/2012 - Estoque Segurança
        MESSAGE i000 WITH text-e03.
        STOP.
      ENDIF.
      IF sy-batch IS INITIAL.
        MESSAGE i000 WITH text-e02.
        STOP.
      ENDIF.
    Best regards,
    Erlon Lourenço
    Edited by: Erlon Louren on Jan 27, 2012 11:09 AM

    Hi Raja,
                Check weather there are  any enhancements to the datasource.If yes once check the code in CMOD.Seems there is some discrepency in that.
    Regards
    Karthik

Maybe you are looking for

  • ASU-process POST Upgrade Step on SQL database

    Hi All, To check this message in the right format kindly click on reply first then click on quote original icon (""). I am performing an upgrade from R/3 4.7 to ERP 6.0 SR3, while doing upgrade sapup asking me To perform the manual application specif

  • How to change background color of text in pdf based by font name

    Hi How to change the background color of text in PDF based by font name. Is there any option in Javascript. e.g: If PDF containing ARIAL font, the ARIAL text background color needs to be changed in red color for all pages. Same for all fonts with dif

  • How do you shut down a computer safely when Finder is not responding?

    I've been having some problem with my Mac OS X lately where Aperture has been "not responding". Stupidly, I used forced shutdown of that program until I learned how bad this is.  So today I'm working on my mac (trying to learn what's wrong with Apert

  • Tables for Credit data

    Hi all, please tell me the tables  for Credit data. Thanks, kishore.

  • Decide between Temoporary tables, Nested tables and Arrays

    Hello everyone. I need to convert T-SQL function to PL-SQL. I have this line in T-SQL: DECLARE @FTAP TABLE ([Value] [int] PRIMARY KEY NONCLUSTERED NOT NULL, UNIQUE ([Value]ASC )); As I see that, there are several equivalents in PL-SQL: 1. Global temp