Change line item in PR, PO, Sch agreement, contract to trigger workflow.

Hi.
The requirement is whenever there is a change in a line item. The workflow is to trigger. When I use the events:
SIGNIFICANLYCHANGED IN BUS2009
CHANGED IN BUS2012 (ENTRY MAINTAINED IN SWEC)
Z_CHANGE IN BUS2013 (ENTRY MAINTAINED IN SWEC)
CHANGED IN BUS2014 (ENTRY MAINTAINED IN SWEC)
The problem with the above events is that, right after the event "RELEASESTEPCREATED" the above events get triggered automatically. My requirement is that, it should get triggered only on line item changes (new version of the purchasing document is created).
Thanks and expecting a reply soon..
Sukumar.

Hi Vinoth,
I did the same thing but a bit differently.
i used the code as below.
DATA: container like table of swr_cont with header line, xeban like table of  ueban with header line, xebkn like table of uebkn with header line, yeban like table of  ueban with header line, yebkn like table of  uebkn with header line, object_key type swr_struct-object_key, item_numc type numc05.
select * into corresponding fields of table xeban from eban where banfn = number and bnfpo = item.
select * into corresponding fields of table xebkn from ebkn where banfn = number and bnfpo = item.
yeban = xeban.
yebkn = xebkn.
read table xeban index 1.
xeban-kz = 'U'.
xeban-banpr = '08'.
modify xeban index 1.
CALL FUNCTION 'ME_UPDATE_REQUISITION'
TABLES
xeban = xeban
xebkn = xebkn
yeban = yeban
yebkn = yebkn.
This solved the issue as far as PR is concerned. I need to update PROCSTAT in EKKO for PO, scheduling agreements and contracts.
Let me know about this.
Thanks,
Sukumar.

Similar Messages

  • Printing of changed line item in scheduling agreement  smart form.

    Hi experts,
    I am facing problem in printing of changed line item in schedule agreement.
    can any body tell me how to find the line item has been changed through programming?what is the procedure to fetch the data for new line item.its
    very urgent for me.
    Please help me in this regard.
    Priti Shrivastava

    Hi
    with the help of  T180-TRTYP field you know if that doc has been changed or created.
    If it is not equal to H it is changed. H means created.
    pass the TCODE of Sched Agreement and check this field.
    You can use the CDHDR and CDPOS table s to get the changed values of new item.
    Reward points if useful
    Regards
    Anji
    Message was edited by:
            Anji Reddy Vangala

  • BAPI_PO_CHANGE Changing line Item

    Hi All,
    My requirement is like this I need to changed line item of a purchase order using BAPI_PO_Change is it required to pass header data other than po Number?I have to change only the Batch Number(POITEM-BATCH) can some body throw some idea on this?
    Thanks&Regards
    Mahesh

    Hi,
       PO number may solve your purpose. Just try filling
       PO number in your BAPI header structure and
       relevent field for your batch number.
    Regards
    Amole

  • Vendor Display/Change Line Items

    Vendor with Debit balance
    Dear Friends:
    In FBL1N - Display/Change Line Items, How to indentify vendors with debit balance and How to identify vendors who has to be paid and why are amounts showing with - sign?
    Please explain.
    Thanks&Regards
    MSReddy

    Hi,
    You can identify the debit balance by checking the amount with positive value. Or you can also select "debit/credit" indicator in the screen layout. when the layout come out, you'll see "H" representing credit and "S" representing debit.
    Regarding second question, normally the line item that still need to be paid is identified as "open item" (red color", and the amount that has been paid as "cleared item" (green color).
    Even the amount already paid, it will still sign negative, but you can see the "clearing document" number as the payment or clearing document.
    Note that, the assumption on the above is that the payment of outstanding vendor is using clearing procedure.
    regards,

  • PO line item condition to be linked with contract

    Hi
    In the PO line item condition tab the costs for freight, insurance are specified in different condition types. Moreover it is required  to create contracts for freight and insurance.When creating the material PO client wants to link the contract for the freifgt and insurance with this PO line item cost.
    How can the contract be linked with the PO line item condition?
    Regards

    I am not refering to the contract when creating the PO. The contract is created independently and the PO is created.
    Explanation of the issue: First the contract is created for the freight and insurance for vendor say V1. Then the PO is created for the material for vendor V2. In the PO line item the freight and insurance is specified in different condition types. When specifying the cost for the freight and insurance they want to link it with the contract that was created with vendor V1. Is it possible to link the contract for freight and insurance with the PO line item cost?
    Regards

  • Unable to change the item category in existing Scheduling Agreement

    HI,
    I have a schedule agreement where there are already list of line items but saved without the appropriate item category field in all of the line items. Now I see that the Item category column is greyed out & unable to edit or change thru ME32 T.code.
    I am already aware that deleting the item codes & adding again with resolve the issue. But when try to delete, those codes shows that they have GR & PO not completed one.
    My question is :
    Is there a way to edit/change the Item category field without deleting the item?
    Whethere is it possible to do it in bulk update for group of items in SA?
    If it is possible, pls provide how to do it with steps.
    Kindly advice.
    Thanks. in advance!
    -Umesh

    Please try using MASS tcode with object BUS2013
    or MEMASSSA
    Its a direct table update where you can select the Table Item and Field Item category and input the document number to change the value os item category and try with one sample data then do it in mass.
    Before cahngin the item categry Please make sure all the dependancies are met then nly the system will allow you to save.
    Refer for Mass upload function it is common for all
    [Mass update|http://www.sapkshare.com/user/image/mass-maintenance---mm17.pdf]
    Edited by: Karthik on Jul 29, 2011 2:44 PM

  • Sales order create/change line item with reference to contract - Open quantity not getting deducted for copied line item from the contract

    Hi friends,
    Please provide some valuable inputs for the following scenario:
    When a sales order line item is created(VA01) or changed(VA02) with reference to a Contract the open quantity is deducted in the contract which is a standard functionality. If the referenced line item is copied (custom enhancement to copy line item), then for the copied line item the open quantity is not getting deducted instead ATP quantity i.e. Available-to-promise is deducted.
    Any inputs on how we can fix this functionality i.e. deduct the open quantity from the contract for the copied line item?
    P.S. : Custom enhancement to copy line item is working fine, but open quantity is not getting deducted if the copied line item was referenced to a contract.
    Thanks,
    Sandeep
    Message was edited by: sandeep

    Sandeep,
    Yes, that was my original interpretation.  I was having a hard time believing that someone would ask such a question. 
    I guess, then, that you already know that you will have to add this logic to your enhancement. You should create your specifications and hand them off to a developer; ideally the one who created this enhanced solution in the first place.
    I do not provide advice in these forums about details of enhanced solutions.  Perhaps one of the other members will be more willing to do your work for you.
    Best Regards,
    DB49

  • Change line item status at table level & also in transaction.

    Hello,
        I want to change the status of line item in CRM service order at table level. This change should reflect in transaction too.
    Ex. Order X is in release state. When i run my program for line item 10 with enabling a check box in the selection screen, then the line item status shd be changed to "complete".
    Table to change status is CRM_JCDS. Kindly send sample code on how to change the status in order through pgm.
    Regards
    Devika.S

    Hi Nikhil
    Open item management tick checked in GL master as we have run the program FAGL_SWITCH_TO_OPEN_ITEM .
    Also GL shows the line item dispaly as RFSEPA01 had been executed.
    However FAGLL03 shows all the old line item as posted status -we are looking for option have the status of all the old
    line item as open item indicatior(in red) there by we can have the option to select all the item to process open item in F-03.
    Appreciate for an amicable solution on this.
    Regards
    subrata

  • BADI/EXIT for changing line items (F-02)

    Hi All,
    I want to know any BADIs/EXITs which allow changing of G/L line items in transaction f-02. I have tried substitution it does not work for my requirement.
    My requirement is copying of PRCTR from offset line item to the Vendor/customer line item which always appears as line item 001.
    Thanks,
    Preetham S

    F050S001            FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment
    F050S002            FIDCC1: Change IDoc/do not send
    F050S003            FIDCC2: Change IDoc/do not send
    F050S004            FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not send
    F050S005            FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document
    F050S006            FI Outgoing IDoc: Reset Clearing in FI Document
    F050S007            FIDCCH Outbound: Influence on IDoc for Document Change
    F180A001            Balance Sheet Adjustment
    FARC0002            Additional Checks for Archiving MM Vendor Master Data
    FEDI0001            Function Exits for EDI in FI
    RFAVIS01            Customer Exit for Changing Payment Advice Segment Text
    RFEPOS00            Line item display: Checking of selection conditions
    RFKORIEX            Automatic correspondence
    SAPLF051            Workflow for FI (pre-capture, release for payment)

  • How to change line item numbers

    HI
    when we are creating sales order, if we enter material number, line item number will be autmaticallly assigned(for eg 10,20,30 ....). if i want to change that number what i have to do(eg: to 1, 4, 5, .....). in standard SAP, the field is grayed out once the no is assigned. so i dont know how to change the no. please help me in this.

    Hello,
    You can give any number manually as the line item when you are creating the sales order.
    While creating the order give the item number also manually, then the system will accept. Once you given the line item number , it will not allow you to change it.
    Then you need to delete the line item and re-insert with the line item number you want.
    Prase

  • Need help to change line item text for 220 Line items

    Hi Specialists,
    The user has posted a reversal entry ( doc type : Manual Accrual) using TCODE FBS1.
    It has 220 line items.
    Is there a way in SAP he can change the text of All Line Items for a particular document number in one shot ( Mass Change).
    Pls note : Header text remains same . Only the line item text needs to be changed in one shot .
    For Eg :
      1 50 2758000047 Accruals for CAS               Accrl - Dec 08 / Nalini Marketing(Door Mats) - Oth
      2 50 2758000047 Accruals for CAS               Accrl - Dec 08 / SKC - M&E Repair
    Changed Description:
      1 50 2758000047 Accruals for CAS               Accrl - Jan 09 / Nalini Marketing(Door Mats) - Oth
      2 50 2758000047 Accruals for CAS               Accrl - Jan 09 / SKC - M&E Repair
    Thanks,
    Abhinav.

    Hi
    This is possible, please follow as below:
    If it is GL (FBL3N), Customer (FBL5N), Vendor (FBL1N) line item use the TCODE' mentioned.
    In the selection screen, if possible give all the document numbers (it is possible with addition selection).
    Once you get the output with the line item, select all line items and go to the menu options  there you can see the mass change option, it will give one popup screen give the new value in the text field and proceed further.
    VVR

  • Changing line item delivery address in shopping cart need to reflect same in all line items

    Hi All,
    Need help on below,
    I have a requirement that when we change the shopping cart line item delivery address same needs to reflect all line items.
    Suppose a shopping cart having 3 line items 1, 2 and 3. if i change the delivery address of line item 1, the same needs to reflect the line item 2 and 3 as well.
    In my case  if we change the 1's delivery address, after processing its genrating the IDOC on line item wise not in the header wise. And same having the different delivery address.
    Thanks in advance.
    regards:
    Ramesh

    Hello Ramesh,
    we can do this changes in BBP_DOC_CHANGE_BADI . Create a Implementation for the above BADI and Inside that Implementation BADI method just call the function module BBP_PD_SC_GETDETAIL for SC item details by passing the Header GUID.
    Once you get the Partner table(E_PARTNER) details.. Keeping a loop on SC item(E_ITEM) and change address number(ADDR_NO) in Partner table when Partner function eq X( X is an partner function values which you define in SPRO.).
    pseudo logic:
      CALL FUNCTION 'BBP_PD_SC_GETDETAIL'
        EXPORTING
          i_guid    = l_guid
        TABLES
          e_item    = lt_item
          e_partner = lt_partner.
    * Check for all the line items if vendor is assigned
      LOOP AT lt_item INTO lwa_item.
        READ TABLE lt_partner INTO lwa_partner
                          WITH KEY partner_fct = '00000019'
                                   del_ind     = space
                                   p_guid      = lwa_item-guid.
        IF sy-subrc eq 0 .
       * modification of address number logic here in partner table
        ENDIF.
      ENDLOOP.
    All the best.
    Regards,
    Sankarbabu

  • BAPI for FB09 change line items

    Hi All,
    Is there any BAPI avaialble for changing the line items of transaction FB09...... instead of going for a BDC
    Please give the helpful answers.
    Thanks

    Hi
    BI program is BatchInput program so it's BDC program: u need to simulate the trx FB09 by a BDC, if u need a fm u can insert the BDC in your fm.
    Just I said if you need to change some std fields (like text, attribution, etc....), u can use the std fm FI_ITEMS_MASS_CHANGE: it's the fm used for massive changes.
    If you see the include LFI_ITEMSF03, u can check which fields are managed by that std fm.
    Max

  • Userexit for changing line item from header, tcode VA42, VA41

    Hi All,
    I have a Zfield (VBAK) for the sales document (contract) at the header level in Additional tab.
    Also the same zfield is present in VBAP table for all line items.
    When this field is maintained by the user using Tcode VA41 or VA42 the line item zfield should also get updated.
    I am trying to find out if User Exits
    1. USEREXIT_MOVE_FIELD_TO_VBAK
    2. USEREXIT_SAVE_DOCUMENT_PREPARE
    might work. Can anyone tell me if there is access to line items in the above 2 user exits which I can modify.
    Thanks,
    Kajal

    Hi Breakpoint,
    Yes I did use table XVBAP in uesr exit SAVE_DOCUMENT_PREPARE.
    But somehow my changed values in XVBAP table is not reflected in the table VBAP.
    Am I missing something here.
    My piece od code  in the user exit :
    FORM XVBAP_ZZREBREL_CHANGE  TABLES t_xvbap STRUCTURE vbapvb
                               USING  P_VBAK_ZZREBREL TYPE vbak-zzrebrel.
    data wa_xvbap type vbapvb.
      IF p_vbak_zzrebrel = 'X'.
        LOOP AT t_xvbap into wa_xvbap.
          wa_xvbap-zzrebrel = 'X'.
          MODIFY t_xvbap from wa_xvbap INDEX sy-tabix TRANSPORTING zzrebrel.
          clear wa_xvbap.
        ENDLOOP.
      ENDIF.
    ENDFORM.

  • Change Line Item Display in GL Accounts

    Hi, I need to know how can I make a massive change to all my GL Accounts, to put the check in the flag of "line item display" in the Control Data of my accounts

    Hi,
    Try transaction MASS or you can find help at http://help.sap.com/saphelp_erp2005/helpdata/en/59/0735b112c311d396cb006094b969cf/frameset.htm
    If you find the answer useful, please assign reward points.
    Regards,
    Svetlin

Maybe you are looking for

  • Java not working on clean install of Mavericks

    I play a Java-based game (Wakfu) on my MacBook Pro. A few weeks ago, it stopped working. The update launcher would work just fine, but playing the game results in opening a blank Java application. I tried a lot of different solutions and eventually j

  • Service sapdp80 timed out when starting GUI

    Clients of my company access our SAP server by VPN. One new client met a problem, they can access VPN, however, when they start SAP GUI, there comes an error"connection to host xx.xx.xx.xx, service sapdp80 request timed out", in its detail, "time: Fr

  • DSD menu links not shown

    Hi All I am trying to implement DSD. While doing so I made Enhancement MDSD project in eclipse using MDSD jar file. Further I deployed the jar file on webconsole and tried running it on awt MI client. After sync, MDSD appication link is shown but on

  • OSB message splitting

    Greetings to all! I'm a new guy to OSB and I have a problem. I Googled it for a couple of hours but didn't find any valuable solution. My only hope is you guys. I have a JMS consumer proxy service, which reads messages from Oracle AQ. The problem is

  • Trying to fix an issue at my laptop

    My Cannon 460 scanner is not working after upgraded OS X Mavericks on my Macbook Pro (13", 2009). How to fix this issue?