Change the  sales order reason for rejection for line item

Hi,
i want to change the  sales order reason for rejection for line item.
iam using bapi_salesorder_change.but i unable to change the sales order.
if possible please provide me what are the fields necessary  for changing
sales order reason for rejection for line item.
Regards,
Suresh

This is the standard config to supress printing on the rejected item. Are you using standard programs or customised ?

Similar Messages

  • How to put Reason for  rejection to line item level?

    Hi
    I am updating the Sales order at line item and putting the reason for rejection but it didnt updates the database. Below is the code.
          LOOP AT LT_VBUP1 INTO WA_VBUP1.
             ON CHANGE OF  WA_VBUP1-VBELN.
              CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
                EXPORTING
                  SALESDOCUMENT    = WA_VBUP1-VBELN
                  ORDER_HEADER_INX = LV_ORDER_HEADER_INX
                TABLES
                  RETURN           = IT_RETURN
                  ORDER_ITEM_IN    = IT_ORDER_ITEM_IN
                  ORDER_ITEM_INX   = IT_ORDER_ITEM_INX.
              CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
                EXPORTING
                  WAIT = 'X'.
              CLEAR WA_TY_SOCLOSE.
              IF SY-SUBRC EQ 0.
                LT_TY_SOCLOSE-VBELN = LV_SALESDOCUMENT.
                LT_TY_SOCLOSE-STCLOSE = 'Y'.
              ELSE.
                LT_TY_SOCLOSE-VBELN = LV_SALESDOCUMENT.
                LT_TY_SOCLOSE-STCLOSE = 'N'.
              ENDIF.
              APPEND  LT_TY_SOCLOSE.
            ENDON.
            CLEAR: WA_ORDER_ITEM_IN,WA_ORDER_ITEM_INX.
            WA_ORDER_ITEM_IN-ITM_NUMBER =  WA_VBUP1-POSNR.
            WA_ORDER_ITEM_IN-REASON_REJ = 'Y1'. " Putting order of rejection for the archiving
            WA_ORDER_ITEM_INX-ITM_NUMBER = WA_VBUP1-POSNR.
            WA_ORDER_ITEM_INX-UPDATEFLAG = 'U'.
            WA_ORDER_ITEM_INX-REASON_REJ = 'X'.
            APPEND WA_ORDER_ITEM_IN TO IT_ORDER_ITEM_IN.
            APPEND WA_ORDER_ITEM_INX TO IT_ORDER_ITEM_INX.
            CLEAR WA_VBUP1.
          ENDLOOP.
    Correct me where I am putting wrong.
    Regards
    Mohinder

    LOOP AT LT_VBUP1 INTO WA_VBUP1.
    ON CHANGE OF WA_VBUP1-VBELN.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
    EXPORTING
    SALESDOCUMENT = WA_VBUP1-VBELN
    ORDER_HEADER_INX = LV_ORDER_HEADER_INX
    TABLES
    RETURN = IT_RETURN
    ORDER_ITEM_IN = IT_ORDER_ITEM_IN
    ORDER_ITEM_INX = IT_ORDER_ITEM_INX.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    WAIT = 'X'.
    CLEAR WA_TY_SOCLOSE.
    IF SY-SUBRC EQ 0.
    LT_TY_SOCLOSE-VBELN = LV_SALESDOCUMENT.
    LT_TY_SOCLOSE-STCLOSE = 'Y'.
    ELSE.
    LT_TY_SOCLOSE-VBELN = LV_SALESDOCUMENT.
    LT_TY_SOCLOSE-STCLOSE = 'N'.
    ENDIF.
    APPEND LT_TY_SOCLOSE.
    ENDON.
    CLEAR: WA_ORDER_ITEM_IN,WA_ORDER_ITEM_INX.
    WA_ORDER_ITEM_IN-ITM_NUMBER = WA_VBUP1-POSNR.
    WA_ORDER_ITEM_IN-REASON_REJ = 'Y1'. " Putting order of rejection for the archiving
    WA_ORDER_ITEM_INX-ITM_NUMBER = WA_VBUP1-POSNR.
    WA_ORDER_ITEM_INX-UPDATEFLAG = 'U'.
    WA_ORDER_ITEM_INX-REASON_REJ = 'X'.
    APPEND WA_ORDER_ITEM_IN TO IT_ORDER_ITEM_IN.
    APPEND WA_ORDER_ITEM_INX TO IT_ORDER_ITEM_INX.
    ***********************************************************************<<<<do this bit here
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
    EXPORTING
    SALESDOCUMENT = WA_VBUP1-VBELN
    ORDER_HEADER_INX = LV_ORDER_HEADER_INX
    TABLES
    RETURN = IT_RETURN
    ORDER_ITEM_IN = IT_ORDER_ITEM_IN
    ORDER_ITEM_INX = IT_ORDER_ITEM_INX.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    WAIT = 'X'.
    CLEAR WA_VBUP1.
    ENDLOOP.

  • Sales Order - Returns change the sales order item delivery status

    Hi All,
    we have the following requirement from our users:
    after creating a return, the original sales order should have the
    delivery item status changed.The system should permit that a new
    delivery can be created for sales order item already delivered / billed (a new delivery with the quantity that has being returned) but has a return document,
    without increasing the sales order quantity.
    Does any body got the same requirement ?
    Thanks in advance,
    Marcus

    Hi Marcus,
      After creating return order you have to do the goods receipts.But this doesn't mean that you will be able to create a delivery with the old order itself.
      You have to create the order again and ahve to create a new delivery,goods issue and billing.
      Another option is as Roberto said that you have to reverse the goods issue thru VL09 and then cancel(delete) your delivery and then you can create a new delivery wr.t to your original sales order.
      Reward points if it helps.
    Regards
    Karan

  • Error while changing the sales order

    hi,
    Thanks in advance.i am trying to change already created sales order in va02.system is throwing an err "the sales document cannot be blocked".my purpose is to create a delivery with reference to this sales  order..when i try to create delivery with this same order it gives the err "you cannot block the transaction at the moment".
    Thanks
    Raks

    Dear friend,
    As our friend says check the schedule line first is it confirmed order qty and try delivery before that see if you have any delivery block in order if you don't have any block in sales order, once you get that error double click and see what response you get from performance assistant, see if you could locate the area were u get the problem.
    Regards,
    Arun.

  • Changing the sales order checking rule

    Hi all,
    Is there any way to change the checking rule of a sales order type?
    Thanks

    Hi
    Is there any way to change the checking rule of a sales order type?
    The answer is NO
    Checking rule is picked by the system internally and that is transaction based like a sales order creation picks checking rule A that is SD sales order and a deliveryer creation picks checking rule B that is SD delivery
    If your sales order item category is marked with spcial stock indicator like these E orders on hand ,Q project stock or W
    consignment stock then while creating sales order creation that is VA01 transaction  the  checking rule will be AE or AQ or AW
    It the item category special stock indicator is blank like TAN then system will pick simply A as checking rule during sales order creation
    So the item category settings also play a role but not the order type
    During delivery creation that is VL01 transaction it will be simply B or BE or BW or BQ
    Regards
    Raja

  • Copying sales order header data into delivery line item

    Hi
    In copy control from sales order to delivery I want to copy value in sales order header to all the items in delivery, can I achieve this in the header level data transfer routine (Source sales document type to target delivery doc type i.e TVCPL-GRUAK)  or I have to do the changes in item level data transfer routine (TVCPL-GRUAP)
    The requirement is to copy a value from VBAK into LIPS during delivery creation
    Thanks
    Javed

    Dear Javed,
    Your requirement sounds interesting.
    If possible can you explain the scenario where we have to transfer the header data form order to item data in delivery?
    Also if you have found the solution, can you please update the same.
    Thanks & Regards,
    Hegal K Charles

  • Defaulting profit center from sales order while doing delive COGS line item

    HI All
    In my company COGS account is a cost element.when PGI(post goods issue) was posted, sap will automatically create an accounting dcument
    CR:stock account ( profit center from material master data or from sales order)
    DT:Cost of goods sold ( profit center from cost center master data)Can we default profit center from material master data(or from sales order) in the COGS line item
    Thanks in advance

    What is your current Version? Is it ECC6 and New GL implemented? Document split configuration will help you.
    If you are not using ECC6 and New GL, then try T.Code 3KEH and determine profit center based on Valuation area.    OR
    You may look into GL Line item level, Write a Validation Rule to select profit center.
    Hope this will help you.
    Thanks
    VR

  • How to change the currency in Billing plan in SO line item

    Hi Experts
    Pls help in following scenario.
    Company Code Currency: HKD
    Sales Document Currency: INR(Indian Rupees)
    Item Pricing Condition Currency(PR00): 100 USD
    Item Netvalue: 4800INR(System caluculated as per exchange rate type M)
    Document Netvalue: INR 4800
    The sales document item is linked to a billing plan.
    I wanted to maintain 100USD in the billing plan.
    When i goto Sales->item-->Billing Plan, The currency in billing plan screen is document currency and is greyed out.
    How to change the Currency in Billing plan (to Item Condition currency) and maintain the Billing value in USD?
    Pls help.
    Regds
    Hari

    Currency change we wanted to do is not during Invoicing.
    In billing plan itself we want to change the currency setup the billing value in item condition currency.
    Any one, pls help.

  • Layout change in sales order or billing suitable for taking printout in A-4

    Address is larger than the space provided in the pre- printed stationary billing slip or sales oreder provided by our client, how to adjust the font, that fits for print out sheet of A- 4 size.kindly tell me how to adjust the size of layout. is there any need for ABAPer, to work on re-sizing of the layout of the slip, which is suitable for taking printout ?
    kindly sugggest how to dot this layout adjustements.
    regards,
    g.v.shivakkumar

    this will done by abaper.. goto se 41.. there abaper will write code ...
    ramki

  • Get name of user depending on condition types by changing the sales order

    Hi,
    I need to display the name of the user who made the changes in the condition types
    i.e.. need to get the name of the user , by changing in the condition types through transaction VA02.
    I am having object id and tabkey (of table CDPOS) but in table CDHDR, i am getting only one entry for object Id and there i can not get the user name depending on the different conditions types.
    Please help me to solve this issue.
    Regards,
    Darshana

    Hi,
    Item details are stored under the TABNAME = 'VBAP'.
    For example if you execute the function module 'CHANGEDOCUMENT_READ' for order number 5000000000, item number 10,
    Function module will return an entry with TABNAME = 'VBAP', TABKEY = '5000000000000010', and other details.
    Execute the function module by passing object class = 'VERKBELEG' and object id = <order number>
    Regards
    Vinod

  • Changing the length of BSEG-SGTXT (Accounting document line item text)

    Hi ,
             I came across a requirement where my business user wants to add more information (greater than 50 char) to  BSEG-SGTXT field.  It is uncommon and not recommended to change SAP provided data definitions (BSEG-SGTXT) but my business user badly needed this enhancement.   I was wondering any of you come across this kind of situation?  I need your suggestions & valuable input to enhance this field BSEG-SGTXT.
    Thank you for reading this post and I appreciate all your inputs.    
    Kumar.

    Hi
    I recommend not to do this. This BSEG table could have impact on lot of things, even in future uprade too.
    regards
    Srinivas

  • Reason for rejection For open line items

    Hi Experts ..
    I Have checked in Google and in scn But Not able to find exact one
    How to achieve This Issue
    Created sales order line item ---150 qnty Now delivered---100 qnty PGI As well as
    Now Clint wants to give reason For rejection For 50 qnty
    Now Generally what we are doing is Just changing the qnty in sales order change mode VA02 --100
    But some times they have so many open line items are there and not possible to change in all line items exact number
    So now i trying to give reason for rejection Line item For full 150 qnty Because Automatically 50 qnty Will be reduced in MD04
    But when i am Giving reason For rejection To line item system is giving error msg that subsequent document is being processed
    So any Enhancement shall we do To skip this 
      Thank a lot

    Dear T.W Sir Thanks a lot For your replay
    But I can not see that the excess qty (not delivered) is being deducted from MRP, when Reason for Rejection is set.
    Sir we can see ...May be it will take 5 mnts time To be updated ( MD04)
    By the By , sir you have any idea To control This pop-up Message ( In your case it may be information msg But some times We are getting Error Msg )
    so Where we can control Warning to Error like this
    or it is related to enhancement issue 

  • Purchase Requisition number not changing when sales order item is rejected

    Hi all,
    I have a requirement to change the sales order status to 'TECO' when ever some reason for rejection is selected in the status tab at the item level.The status should change from 'TECO' when i remove the reason for rejection.
    The status change is happening correctly.I have achieved it using user exit.
    CASE 1 : Initially, when a new item is added in the Sales order the purchase requisition number appears in the schedule lines tab of the item level. This is as expected.
    CASE 2 :When the same item is blocked (by entering a reason for rejection in status tab of VA02 ) then the purchase requisition number is not present in the schedule lines tab.This is as expected.
    But i face the following issue.
    CASE3 : Again if the blocked item is unblocked (By removing the reason for rejection in status tab of VA02 ) then the purchase requisition number does not appear again in the schedule lines tab.The purchase requisition number is expected to appear again.
    This happens in case of DROP SHIPMENT scenario. I understand that in case of dropshipment scenario the purchase requisition number is triggered by item category and schedule lines only.
    I tried to make the changes(to change the status ) in user exits 'MV45AFZZ' and also 'MV45AFZB'.But i face the issue in both the exits.Please let me know if there are any means to solve this issue(as mentioned in case 3).
    Regards,
    S.Suba

    Many thanks for your answer. It help me to solve the issue.
    So applying note 738171, with transaction OVB5 (or VOFM, requirements->subsequent functions->Purch.requisitions) we create one new requirement, ie RV07A900, and then we apply the rule that if we have delivery or billing block, that is, VBAK-LIFSK or VBAK-FAKSK not empty, then we set an error with a code similar to this:
                da_sy-msgid = 'Z1'.    (message class)
                da_sy-msgno = '001'.  (message number)
                error_exception = true.
    and then the PR is not created.
    Regards.

  • System resets the sales order item price changes after save in VA02.

    Hi All,
    We have implemented automatic credit control at sales order level.
    System is blocking the sales order once saved in VA01.
    But if I do any changes in prices at item level in VA02 and save before credit releasing the sales order then system agian reset to the original prices from pricing condition records.
    Can any body tell me why this is happening? I should able to change the sales order prices manually before releasing the sales order credit block. Is it possible?
    Regards,
    Kartheek.

    Like Lakshmipathi said, you should be able to change the prices in the order even if the order is under credit limit block.
    Please check the condition types which are being changed . In the condition type definition( T Code V/06) for the field Manual Changes - the value should be either "Manual entry has priority" or "....should allow to change manually...".
    Also in your pricing procedure ( T Code V/08) , against your pricing procedure , please select the value for pricing type as ..."copy manual conditions and redetermine others".
    Hope this helps
    Regards
    Sai

  • Reason for rejection at line itme question - ?

    Hi
    how the line item will pick reason for rejection automatically in the order -?
    Normally reason for rejection will enter manually  for line items -?
    In my scenario when i create a order I am seeing reason for rejection at line item. what could be the reason? where I can check -?
    Please help me.
    Thanks
    Greg

    Hi Vas
    You said with the help of BDC -?
    what could be the bussiness reason -?
    can you help me to understnad the scenario with the example -?
    Please.
    Thanks
    Greg

Maybe you are looking for

  • How to recover missing purchased items from my old region???

    Hi, Before 2 months ago I'm tried to change my region in the Apple Store and I was have a problem it I can not change the area until the reset my balance to 0 and it was I have a balance of 0.40 pounds, I contacted with the technical support at Apple

  • How to export a PDF including all of the borders?

    I am very new to InDesign.  I have only used it a handful of times and am unfamiliar with setting up pages.  I was given a file and I have to export it. The problem is that, when I export it as a PDF, a small part of the image is cut off on each page

  • How do i link MySQL to a WS

    hihi i been look for a way to link up WS with DB but i dont seem to find any good tut..... it would be nice if you could post link for some useful tut thx :)

  • Conversion of FG into Scrap

    Dear All, Conversion of FG into Scrap. one step process (mvt. type 309) Accounting entry    scrap inventory a/c dr gain /loss on scrapping a/c dr. To, FG inventory a/c cr. two step process scrapping through 551 movt type - gain/loss on scrapping a/c

  • Entire Hub Deleted- AUTOMATICALLY?!

    A few days ago I noticed there was nothing on my hub excepting a few facebook messages. No work email, personal email, fb notifs, texts, alerts, NOTHING. I have been out of comission sick, so just started looking into this today and saw that this als