A Batch Input to modify status TRAI of an activity

Hello and thank you in advance for your help.
I^ve created an ABAP program in order to create a batch Input that could modify the Status TRAI for an activity.
I upload a file with a list of project, activity and a X to validate or no the status TRAI.
For example, in the file uploaded we have:
C1/4563798/020    0003   X
1- I execute my program to create the batch input.
2- I process my Batch Input.
The batch Input launch the transaction CJ20.
We select the good WBS but sometimes it doesn't select the good activities.
In fact when we have selected our WBS:
We have access to this screen:
line 1                A blank line
line 2                C1/4563798/020    0001   X
line 3                C1/4563798/020    0002   X
line 4                C1/4563798/020    0003   X
In my program i select the line 4 in order to open the activity 0003.
Unhappily i have found some project like that:
line 1                A blank line
line 2                C1/4563798/020    0001   X
line 3                C1/4563798/020    0003   X
line 4                C1/4563798/020    0004   X
So when i'm trying to select the line 4 to have activity 003, i do not have the activity 0003 but the activity 0004.
Can you help me please finding an other solution:
1- I can may be check the value of the activity that i've selected but i don't know how to do that.
2- Or find an other transaction in wich i could access immediately to my activities.
CJ20 allows to access project and WBS
CN22 allows to access Network.
But for activities ?????
Thank you very much for your help
This is a part of my program:
  PERFORM BATCH_CALL_SCREEN USING: 'SAPLCJTR' '108'.
  PERFORM BATCH_FILL_FIELDS USING: 'TCJ41-ALL_ACT' 'X'.
  PERFORM BATCH_FILL_FIELDS USING: 'proj-pspid' ''.
  PERFORM BATCH_FILL_FIELDS USING: 'PRPS-POSID' PROJN.
  PERFORM BATCH_FILL_FIELDS USING: 'BDC_OKCODE' 'STTR'.
In CJ20 i select my WBS and change structure planning. I go on the second mitre "Basic Dates
PERFORM BATCH_CALL_SCREEN USING: 'SAPLCJTR' '230'.
  PERFORM BATCH_FILL_FIELDS USING: 'BDC_CURSOR' W_INDEX.
  PERFORM BATCH_FILL_FIELDS USING: 'BDC_OKCODE' 'PICK'.
I select the line which contains the acticity to change
  PERFORM BATCH_CALL_SCREEN USING: 'SAPLCONW' '1000'.
  PERFORM BATCH_FILL_FIELDS USING: 'BDC_OKCODE' 'STAS'.
I go on the screen to change status
  PERFORM BATCH_CALL_SCREEN USING: 'SAPLBSVA' '0300'.
  PERFORM BATCH_FILL_FIELDS USING: 'BDC_OKCODE' 'DIRI'.
I open the window to enter the status TRAI
  PERFORM BATCH_CALL_SCREEN USING: 'SAPLBSVA' '0882'.
  IF STAT = 'X' OR STAT = 'x'.
    PERFORM BATCH_FILL_FIELDS USING: 'JESTD-ETX04' 'TRAI'.
    PERFORM BATCH_FILL_FIELDS USING: 'BDC_OKCODE' '/00'.
I put the status of my Activity in TRAI
  ELSE.
    PERFORM BATCH_FILL_FIELDS USING: 'JESTD-ETX04' 'TRAI'.
    PERFORM BATCH_FILL_FIELDS USING: 'BDC_OKCODE' 'LOES'.
I cancel the status TRAI of my Activity
  ENDIF.
  PERFORM BATCH_CALL_SCREEN USING: 'SAPLBSVA' '0300'.
  PERFORM BATCH_FILL_FIELDS USING: 'BDC_OKCODE' '=BACK'.
  PERFORM BATCH_CALL_SCREEN USING: 'SAPLCONW' '1000'.
  PERFORM BATCH_FILL_FIELDS USING: 'BDC_OKCODE' '=BACK'.
  PERFORM BATCH_CALL_SCREEN USING: 'SAPLCJTR' '0230'.
  PERFORM BATCH_FILL_FIELDS USING: 'BDC_OKCODE' '=BUTV'.
I save my project changed.

Hi Loic,
            Goto CN22 -> Enter Network No -> press F7
you can able to the see the activities now. If i am not matching your requirement. give me ur requirement in detail. I will do recording for u
Jai

Similar Messages

  • LSMW: Batch Input for modified XD01?

    Hey!
    I want to import some customers data via LSMW, however we are using an add-on in our R3. For this reason I recieved the message: 'Old data BKNA1 cannot be processed, ADD-ON exists', when I tried to create the batch input session. All the steps before were fine. The modification of xd01 is just one button to add some additional information. Do I have to record the whole batch input session on my own again or does anyone knows an other opportunity?
    kind regards

    Guess you need an end of record marker in field SENDE (BKNA1):
    End of record marker:                                                                               
    If a batch input structure is later extended, the new end of the structure is indicated by a special field (SENDE). If you are already   
    working with the new, extended structure, you must also supply this     
    field with the NODATA indicator when "initializing" the structure. As a 
    result, the system can recognize whether the data is based on the old or
    the new structure when the structure is imported.                                                                               
    Old structures can no longer be processed and the system terminates with
    an error message if the following prerequisites are fulfilled:                                                                               
    o   You are using the modification-free enhancement of the customer/vendor master either directly or indirectly via an SAP solution.                                                                               
    o   Either you or an SAP solution extends the structure.

  • Create Batch Input

    Hi,
    I have to create a batch input to modify storage location with CO02.
    Is there a procedure that show how to create it with SM35 ?
    Have never use that transaction.
    Bob.

    Hi Robert,
    use transaction code SHDB to know the screen and field sequence and either u can create a program to upload ur data through BDC where u have to call these Function module like:
    1.CALL FUNCTION 'BDC_OPEN_GROUP'
            EXPORTING
              client              = sy-mandt
              group               = p_group
              holddate            = p_hdate
              keep                = p_keep
              user                = p_user
    2. This FM is used to insert the records into session.
          CALL FUNCTION 'BDC_INSERT'
            EXPORTING
              tcode            = l_k_mek1
            TABLES
              dynprotab        = i_bdcdata(<b>intenal table which contains data). this function module has to call that many times as many record u want to post)</b>
    3. To close the session
          CALL FUNCTION 'BDC_CLOSE_GROUP'
            EXCEPTIONS
              not_open    = 1
              queue_error = 2
              OTHERS      = 3.
    <b>or</b>
    after recording through transaction 'SHDB', save that data and create a program by clicking program from application tool bar that will give u ready made code for BDC.

  • Greyed out screen field in transaction but modifiable by batch input

    Hi Gurus,
    I have a requirement where a custom screen field in a transaction (FK01/FK02/XK01/XK02) has to be greyed out when a user access these transactions. However, these fields will have to be modifiable when LSMW/batch input is being done.
    I hope someone can advise how I can do this.
    I'll definitely reward points for helpful answers.
    Thanks so much.
    Rgds,
    Joyie

    Declare on your layout input is 0. Or the field cannot be filled by value.
    After you have done that, create some code like this:
    Loop at screen.
         IF sy-batch is not initial or sy-binpt is not initial.
                if screen-group1 = 'ANL'
                   screen-input = '1'.
                endif.
            endif.
    endloop.
    Hope it helps solve your problem.

  • Batch input session from F.05 has an 'in processing' status

    Hello all,
    We would like to ask for advice regarding an issue that we are facing right now. We ran F.05 on 9/30/2008. This transaction should create a batch input
    session and post revaluation at the end of the month and eventually
    reverse them at the beginning of the next month. Unfortunately, as of
    the date of the run, period 10 was not yet open. So, the results are
    the following:
    The batch input created, until now, has an 'in processing' status. 70
    transactions were supposed to be processed (but not sure if this is
    already the total or it still has some more to process -since we do not
    have a record of the supposed number of postings). Now, period 10 is
    already open and we are trying to reprocess the session, but it can't
    be because of its status.
    Looking at the transactions: total is 70 (but not sure if there are
    still more to be processed supposedly). 35 transactions (pertaining to
    the revaluation postings at the end of the month) have been processed and
    their revaluation documents were already produced. 35 transactions (pertaining to the
    supposed reversal on the first day of October) are in error because
    period 10 was not yet open as of run date. No logs have been created (blank).
    In the meantime, can we post manual reversals in October for the revaluation postings made in September? Is there a possibility that there are still revaluations to be processed for September? Let's say, instead of only 35, there are still more? Or another option: could we manually reverse the revaluation postings on September 30 and post on the same date, delete the batch input session (can it be deleted despite the status?), then run the revaluation transaction again for September?
    Thanks in advance for your advice.
    Regards,
    Peter

    Hi Peter,
    Go to SM35 > Select the session in process > Release session (Shift + F4)
    Now select the session again from "Overview" and process again in order to process the remaining documents. Ensure the period is opened.
    This should resolve the issue. Let me know how it goes.
    Rgds
    Nadini

  • Batch input status

    Hi,
    when I executed the program I got the message 'Batch input session ZMT0006 is created. Pls run Batch Input Status Report for Checking' what does it mean

    hi,
    that means u have executed a program related to bdc.
    in bdc session method a session is created in sm35.
    so based on that requirement in program data is given in flatfile and session is run in sm35.
    rewardd points if hlpful.

  • Messages, function modules and Batch Input

    Hi,
    I need to modify some values on the BP transaction with a batch input and I encapsulated it on a function module, because I need to call this FM from a Web Dynpro ABAP.
    The problem is that some success messages are raising from the batch input, even if I set a message table to store them on the call of the batch input.
    DATA: bdcdata    TYPE STANDARD TABLE OF bdcdata,
              wa_bdcdata TYPE bdcdata,
              messtab    TYPE STANDARD TABLE OF bdcmsgcoll.
      DATA: v_message   TYPE string,
                wa_messtab  TYPE  bdcmsgcoll,
                v_mode      TYPE c VALUE 'N'.
    " some code here....
      CALL TRANSACTION 'BP' USING bdcdata MESSAGES INTO messtab
                                                   MODE v_mode
                                                   UPDATE 'S'.
    How can I prevent these messages? Thanks in advance.
    Regards,
    Jordi

    Yes,
    there are some BAPIs to work with BP, but I could not find any that meets my requirements. I need to do two actions:
    1 - complete the "Internet user" tab
    2 - set the "central lock" flag on the status tab
    If you have a BAPI or FM to make these two actions, please let me know. I spent two days looking for them and finally I've decided to use the batch inputs (I hate them).
    Regards,
    Jordi

  • Batch input session for FI postings

    At the time of batch input session processing for FI postings (Transaction FB01), session is terminated due to following error message -
    Message no. 00349
    Field BSEG-PRZNR. does not exist in the screen SAPMF05A 0302
    Batch session has been created using LSMW for data upload. As per field status of the GL account, some of the line items may or may not require an entry for particular field. How can we ignore this error during batch input session when a field is not required to be input for a particular GL account. However, flat file format contains this field because it is required for some of the GL accounts.
    Let me know if you need more information / example. I desperately need a solution.
    Regards,

    Dear Abhilasha,
    Lets assume you have two gl accounts gl1 and gl2. gl1 requires this field to be entered, whereas gl2 does not allow you to enter value.
    In this case, modify your logic as below:
    I believe you can write code in LSMW as well.
    However, if you are using BDC you can write logic as follows:
    if gl_account_field = gl1.
      PERFORM bdc_field       USING 'BSEG-PRZNR'
                                           value.
    endif.
    Hope this will help.
    Regards,
    Naveen.

  • Is it possible to maintain a view vai Batch Input

    Hi guys,
    The user required to develop a BDC program to upload the data source from outside of SAP, and maintain these data into a view via Tcode: SM34. But it seems the view doesn't support Batch input.....
    Can anybody tell me, is it possible to maintain a view via Batch input? Many thanks!
    Brian Liu

    Additional information:
    This requirement is to upload the Overhead Rate data from outside of SAP, and maintained via KZM2 or SM34. But when I tried to record a BDC for KZM2, it seems that the SAP can not support batch input.
    I find a SAP note 208474, it says:
    Symptom
    Overhead rates of the costing sheet of the overhead rates, which have been created, changed or deleted via batch input or Call Transaction, are not saved.
    The same rates are saved if processing is carried out via Transaction KZZ2 or the Implementation Guide IMG.
    Cause and prerequisites
    Processing the Customizing transactions for maintaining the overhead rates of the costing sheet (Transaction KZZ2, KZM2) is
    not supported in the batch input. This corresponds to the SAP standards according to which Customizing transactions in general need not necessarily be capable of batch input.
    The batch input data of the overhead rates are not saved in the standard because processing is terminated by a COMMIT WORK. This statement ensures that the internal tables for the transport of the overhead rates are only deleted if their transfer to the database tables to be transported has been processed successfully.
    Solution
    The subsequent modification allows batch input processing of the overhead rates, by suppressing the COMMIT WORK statement. As a result of the modification, the tables in the transport request of the overhead rates may be incomplete in single cases.
    In cases where the overhead rates have not been transferred completely to the target system after implementation of the modification, include the overhead rates again in a transport request, repeat the transport and, if necessary, subsequent processing.
    Note that the attached modifications are not and will not be included in the R/3 standard system.
    I modified the sap standard program L0COEF04 according to another SAP note 150041, but after the modification, I still couldn't record the BDC.
    Anybody who have ever met the same situation, or can give me some suggestion? With many thanks!
    Brian Liu

  • Creation of Batch Input for transaction C201

    Hello,
    Currently I am having a requirement to create a batch input session for tcode C201.
    Following steps we need to perform using batch input session:
    1. Go to tcode C201 and enter material and Plant.
    2. Then click on choose template and give Mater Recipe option.
    3. On next screen enter Recipe Group and Recipe.
    4. After that it will go to Copy Master Recipe screen and then giving status it will open other tabs like Operations, Materials etc.
    Now when I create recording, till step 3 it is continuing correctly. but when press enter after step 3 it goes to Create Mater Recipe instead of Copy..
    I got one SAP note 142022 but dont know how to implement this in my case.
    Can you please help me?
    Thanks and Regards
    Nishad

    As [Note 142022 - Batch input and CATT in recipe|https://service.sap.com/sap/support/notes/142022] explain, you have to add one step in your batch input with BDC_OKCODE "=TOFF" on the first dynpro so C201 will always use old screens which are batch-input compatible. (First check [Note 365051 - OK code TON does not work when creating recipes|https://service.sap.com/sap/support/notes/365051] is implemented on your system)
    SAPLCPDI 4000
                  BDC_CURSOR RC271-PLNNR
                  BDC_OKCODE =TOFF
    Regards,
    Raymond

  • No batch input data for screen SAPMSSY3 0131 in Sales order IDOC

    I am processing Sales order IDOCS in status 64 using RBDAPP01 .Some of them error out to status 51 with the message -
    No batch input data for screen SAPMSSY3 0131 .
    I know the standard IDOC inbound process tries to simulate the posting in a BDC like process.
    Now, I went to we19 and the screen hangs up in a pop up in the partners tab with partner type 'WE' and my shipto (which is actually filled in the IDOC), missing..upon repeatedly hitting enter, it goes thru and an idoc is posted in status 53. But still unable to get through the root of this issue.
    Any, insight will help.

    Hi,
    I think the pop-up is generated through and user-exit for which recording is missing. This is why your idoc stays in status 64...
    Handle the screen recording in the user exit IDOC_INPUT_ORDERS
    user exit routine
    PERFORM customer_function_dynpro.
    FORM CUSTOMER_FUNCTION_DYNPRO.
      CALL CUSTOMER-FUNCTION '002'
        EXPORTING DXVBAK   = XVBAK
                  DVTCOMAG = VTCOMAG
                  DLAST_DYNPRO = LAST_DYNPRO
                  DXMESCOD = IDOC_CONTRL-MESCOD
        TABLES    DXBDCDATA = BDCDATA
                  DXVBAP    = XVBAP
                  DXVBEP    = XVBEP
                  DYVBEP    = YVBEP
                  DXVBADR   = XVBADR
                  DYVBADR   = YVBADR
                  DXVBPA    = XVBPA
                  DXVBUV    = XVBUV
                  DIDOC_DATA = IDOC_DATA
                  DXKOMV    = XKOMV
                  DXVEKP    = XVEKP
                  DYVEKP    = YVEKP
        EXCEPTIONS
                  USER_ERROR = 01.
    Regards,
    Krishnakumar

  • LSMW for routing with standard batch input

    Hello All,
    I am trying to prepare one LSMW for routing upload for PP module. Routing data contains header data, operation data and master inspection characteristics data.
    I have created three source structures viz. material- task list header, task header data, operation and inspection.
    Header has been assigned to target structure BIMPL- Batch Input Structure for Allocation of Mat. to Task Lists,
    Task header data source structure has been assigned to BIPKO- Batch Input Structure for Task List Header,
    Operation source structure has been assigned to target structure BIPPO- Batch input structure for task list operation,
    and inspection source structure has been assigned to BIPMK- Inspection characteristics for batch input of task lists.
    Every source structure has been identified with an identifier value of which have been set as H, I,J,K for all source structures resp.
    The excel file has been prepared as follows,
    H     MATNR     WERKS     PLNNR     PLNAL               
    H     100045     1000     50000043     1               
    H     100045     1000     50000043     2               
    I     MATNR     WERKS     PLNNR     PLNAL     VALID_FROM     USAGE     STATUS
    I     100045     1000     50000043     1     01012000     1                1
    I     100045    1000     50000043     2     01012000     1                 1
    I have mentioned here the combination of first two structures only. But it contains data of other two source structures as well (for identifier J & K).
    The data from the excel is copied to the flat file and same is specified in LSMW in the step 'Specify file'.
    In 'Assign file' step the flat file is assigned to all the four source structure.
    Now at the time of reading data system is throwing me an error as 'Ensure field sequence is correct for data for mutiple source structures' Message no. /SAPDMC/LSMW_OBJ_060026
    How to overcome this?
    <removed by moderator> answers will be greatly appreciated........
    Mimiri
    Edited by: Thomas Zloch on Jul 11, 2011 10:16 AM

    Hello ,
    have you maintained this check box for the key fields"
    LSMW>Maintain Source fields>double click on fieds : MATNR WERKS PLNNR PLNAL
    Selection Parameter for "Import/Convert Data"-->Tick this check box
    regards

  • Problem with batch inputs

    Dear All
    Could you advise me, we have many batch inputs stored in our system, some of them are very old one.
    What is SAP recommendation?
    How long batch inputs should be stored?
    Maybe you have some experience in this matter and can advice us>
    Thank you in advance for your help.
    Best regards
    Maja

    Hi Maja,
    if you double click on each batch input session, u will find the status, (Error, Processed, Not Message). u can delete the batch inputs whose status is Error or no message. those are all not in use. Even if you leave that also not a problem.
    U can find the status in 2nd Column, if the 2nd column has symbles like (Execute, Create and Error). Based on that also u can find the status.
    Kumar

  • Cannot delete old sessions from SM35 - Batch Input...

    Cannot delete old sessions from SM35 - Batch Input...                
    We have an issue, we are trying to delete old batch input sessions via SM35 and no
    matter how hard we try we cannot get rid of them. They are still in status "In Process" but they are status incorrect.
    Those sessions have long finished and some are more than 5 years old.
    We have tried running rsdbcreo and RSBDC_REORG but it only returns with
    Temse Error, running SP12 does not list any inconsistencies. Basically we want all jobs in SM35 that ran this year only available in the SM35 queue, we have sessions that have run from year 2004 to 2008 we wish to
    delete.
    Anybody experience anything similar or have any advice, sorry this is an environment that i have inherited and wish to cleanup.
    We have checked the following notes 706478,76422,706478,76422 and many more.
    Thanks
    Suleman

    When you try to delete, you will be asked whether you want to delete logs too.
    Here try with 'No'.
    hope this helps

  • Error message 00 344 : No batch input data for the screen SAPMF02D 0324

    Hi Experts,
    We are working with SAP CRM 4.0 and SAP R/3 6.20
    We have an important number of BDocs (type 'BUPA_MAIN' ) in status  E02 with the error message
    00 344 : 'No batch input data for the screen SAPMF02D 0324'.
    Can any one help us to explain the cause of this message and how to resolve it ??
    Thanks you in advance for your help !
    Best regards,
    Nabil.

    Any ideas ?
    We really appreciate your help !

Maybe you are looking for