Item User Status - Sales Order

1- The cancellation item is created with reference to an existing line item on Sales Order. How is done?
2- I would like to see the original item have its status for both delivery and billing changed to completed and have it’s overall status completed as long as a PO is created. I don't know how to do that...
Can you help???
Thankss

Hi Miquel,
For that T.code we have user exits and badi. I am providing all the userexits and badi plz gothrough that.
Transaction Code - VA02                     Change Sales Order
Enhancement/ Business Add-in            Description
Enhancement
V60F0001                                SD Billing plan (customer enhancement) dif
V46H0001                                SD Customer functions for resource-related
V45W0001                                SD Service Management: Forward Contract Da
V45S0004                                Effectivity type in sales order
V45S0003                                MRP-relevance for incomplete configuration
V45S0001                                Update sales document from configuration
V45P0001                                SD customer function for cross-company cod
V45L0001                                SD component supplier processing (customer
V45E0002                                Data transfer in procurement elements (PRr
V45E0001                                Update the purchase order from the sales o
V45A0004                                Copy packing proposal
V45A0003                                Collector for customer function modulpool
V45A0002                                Predefine sold-to party in sales document
V45A0001                                Determine alternative materials for produc
SDTRM001                                Reschedule schedule lines without a new AT
  Business Add-in
BADI_SD_SCH_GETWAGFZ                    Scheduling Agreement: Read WAGFZ from S073
BADI_SD_V46H0001                        SD Customer functions for resource-related
No.of Exits:         15
No.of BADis:          2
Which one is suitable plz check it out and put breakpoint after providing the logic .
Rewrds some points.
Rgds,
P.Nag

Similar Messages

  • Is the Sales Order Item User Status available in user exit MV45AFZZ

    Hello,
    Does anyone know if a sales order line item user status is available within user exit MV45AFZZ (USEREXIT_SAVE_DOCUMENT)?
    I need to send an email when the status changes from one specific value to another specific value but I don't seem to have access to what the latest value is in this user exit.
    I have found a table XTVSTAT which cntains some user status' but it's not clear which status maps to which line item.
    If anyone has any suggestion please let me know.
    Thanks,
    Ruby

    Hi,
    I do need to access the values as I need to check for a specific change to the user status from value A to value B.
    I have already tried debugging the user exit and searching through the available variables but the status information doesn't seem to be available.
    I guess I will have to try the output determination route. Can you explain this in a bit more detail please.
    Thanks,
    Ruby

  • Detecting change on header and item texts for sales order in user exit

    Hi,
    In the user exit of VA02, I need to identify/detect if header or item texts for sales order is changed or not.
    Please advise on this.
    Regards,
    Shreyas

    Normally system stores the old values in XTables and new values in YTables.  Check if you have access to these in your user exit.  If you give the user exit name, someone will be able to guide you.
    hith
    Sunil Achyut

  • Item user status at plant level

    Hi All
    I have configured certain User Status which are assigned to Item category. Item category is used in all the plants but user status is applicable for only few plants. So User status will also appear in those plants where it is not applicable.
    In Cost object Sales orders I have the option of selecting the User status manually in Status tab by clicking in 'Object Status' button. But in the items which are not cost object 'Object Status' button does not appear. So I have to assign to Item category in Customizing which will then always be defaulted even though it is not required in ceratin plants.
    Regards,

    Hi,
    I dont think it is possible .
    A suggestion not sure if it works .
    Assign user status profile operation wise and then have some development to check the operation status and
    then update production order status with same user status you mentioned in operation.
    FM: STATUS_CHANGE_EXTERN will help you to change the user status of order.
    Regards,
    Vishal

  • Issue while changing Item Category during Sales Order Creation

    Hi,
    Requirement:
    Requirement is to change the item category of Sales Order item while creating the sales order.
    Rule is: If item category is IRAT then it should be changed to IRLN.
    For this, I am using the user exit "USEREXIT_SAVE_DOCUMENT_PREPARE" available in the include MV45AFZZ.
    Issue:
    Using the above mentioned exit, Item category is getting changed to the desired value in the created sales order BUT value of Billing Status (VBUP-FKSAA) which is supposed to get changed is blank.
    For example, Sales order is created from VA01 and item category is changed manually to the value mentioned above, then for the sales order created we have VBUP-FKSAA = 'A'. But when value of Item category is not changed manually and it is changed from the exit, then value of VBUP-FKSAA is blank.
    I have to find a solution which would change the value of Billing Status according to the change in the value of Item Category.
    Please suggest a relevant solution.
    Thanks a lot for responding.
    Abhinav.
    Edited by: Abhinav Jain on Apr 9, 2010 6:47 PM

    Hi Abhinav,
    I have a simmilar problem. In my case I am changing Reason of Rejection in the user-exit, but net value is not getting updated. Did you solve your problem? Any other way to change a field of a sales order item?
    Thanking you in advance,
    Nisha

  • I want a push button for line items in my sales order entry screen.

    Hi,
    I want a push button for line items in my sales order entry screen.
    How can I do so?
    Thanks.

    Hi Kumar ,
    To have a push buttons you need to first assign a pf-status .
    here a sample code for a push button and its handling :
      set pf-status 'SELECT' .
    at user-command .
      describe table t_lpr lines w_lines .
      case sy-ucomm .
        when 'SELECTALL' .
          set pf-status 'SELECT' excluding 'SELECTALL' immediately.
          do w_lines times .
            read line w_line field value w_check . " INTO W_CHECK .
            if w_check = space .
              w_check = 'X' .
              modify line w_line field value w_check.    "INTO W_CHECK .
              add 1 to w_line .
            endif .                        " IF W_CHECK = ' '
          enddo .
    Thus when you say pf-status say 'select' , Double click on that and you find a screen eher you can select icons and assign a function code to it!
    Hope it helps!
    Much Regards,
    Amuktha .

  • Send all line items of a sales order to IPC along with condition lines data

    We wrote some pricing routines in R/3, where while doing he calculations for condition line item, we needed to pull in the material information for previous line items. So we exported vbap and imported it inside the routine to be able to have access to all the line items in the sales order. Now, we need to put in the same kind of logic in CRM/IPC. My question is what would be the equivalent of SAP's(import/export) commands for internal tables in case of IPC. I looked at the BADI CRM_COND_COM_BADI but still do not see how I can send all the line items  data to IPC. So I guess, the question comes down to, how do I send all the line items of the sales order (whole VBAP in R/3 terms) to IPC along with the condition line data? Can someone please help?
    Thanks

    Hi Vaibhav,
    If you can get the list of Sales orders which has deleted line items and force completion status. You can manage them in BI via lookup  or navigation attribute.
    Just my views I am sharing .
    Thanks,
    KDJ

  • Mass update of Item category in Sale order

    Hi all,
       Kindly guide me to do the mass updating of item category in a sale order.
       I want to update the item category of all the items in a sale order.
       User will be giving large number of sale orders as an input.
       How to proceed to achieve the same?
    Thanks in Advance,
    Regards,
    shaju

    Hi,
         We can write a function module for this by getting an input it want to change this..For eachinput we can activate this in a loop
        Is they gave a file of inputs means we can go BDC or LSMW..If before transferring we want to make only little changes means we can do this by LSMW  otherwise we can go for BDC...

  • Swap between two different item categories in sales orders for sub-contracting

    Dear gurus,
    my requirement is to have the ability to swap between two different item categories for sales orders for sub-contracting.
    This should be controlled by a combination of the material and a value maintained the Usage field in the Customer Material Info Record (for example by entering a ‘V’).  A combination of Sales Doc Type, Item Cat Group and Usage should result in the creation of a purchase requisition.
    In the event that a process order is required instead of a purchase requisition (i.e. the product is to be manufactured in-house instead of sub-contracted) the user must have the ability to change the Item Category within the sales order to produce a process order.
    The user would just change the item category within the sales order, and the system would automatically remove the purchase requisition assigned to the SO, and create a process order and assign it to the SO.
    Can you suggest any possible solution?
    Thank you in advance.

    Hi Majlo,
    In my system, I checked.  First created sales order with third party line item and then changed item category to normal item category.
    Till Purchase order not created, I can change Item category of my sales order line item.
    In this case SAP inform by log and once save delete purchase requisition of that line item .
    For this you need to assign another item category as an manual item category in SPRO Item category assignment.
    After this user can manually change item category to other one manually, if PO do not exist.
    Please let me know if your query is different.
    Regards

  • Keep Quote line item numbers in Sales order

    While creating a Sales order from Quote, SAP always creates line items with 100,200,300...and so on.
    If quote has 3 line items say 100,110, & 120 and we create a sales order with reference to this quote in VA01. The sales order line items become 100,200 & 300.
    The requirement is for Sales order to also have same line item numbers i.e. 100,110 & 120.
    To retain quote line item numbers in Sales order the ABAP change will be in VOFM or user exit?

    Hi,
    It is not a straight forward thing. Adding data to table XVBAP won't work. It will create inconsistency. There are so many other tables involve here too, like, VBPA, VBUP, VBKD, KONV. There can be other tables too based on how your sales order is configured.
    Also, modifying these tables (XTAB, YTAB ) in this user-exit may cause database inconsistency.
    Regards,
    RS

  • Different departure country per item in a sales order

    Hi all,
    I have a tricky issue.
    We need to set a different departure country on each item of a sales order.
    Departure country is one of the key elements used by SAP to find the right tax condition record. Usually you have either to type a country in header tab (in field "tax departure country") or specify a plant set in the departure country at item level.
    We use non-stocked materials to represent "services": they are in a plant, but we can't build a plant for each country involved.
    The solution we are considering : using a user-exit to specifiy the departure country (stemming for example from the country of the shipping partner) on each item of the order (not forgetting the customer tax classification). We can thus have several departure country on a single order.
    What do you think (better ideas ?) ? Which user-exit would be best ? We are thinking of subroutine USEREXIT_PRICING_PREPARE_TKOMK, but we are not sure this is the best.
    Any solution or alternative to all this is welcome.
    Thanks a lot in advance !
    Nicolas JOSEPH-CHARLES
    On behalf of Jean-Charles CHAGUE

    Go ahead and do it in there.
    I added the codes in there too.

  • How to delete a line item from the sales order

    Hi all,
    how to delete a line item from the sales order for which the production is already happened and it has been delivered. the production order status is DLV.
    Regards
    Kumar

    Hi
    U can do this in two ways one u can short close the order by entering Reason for rejection in VA02 at header level and if yr order is multiple line item order u can enter the reason for rejection in any of the line item which u don't want to deliver.
    This is called short close ( as the qty is not delivered fully).
    Thx.

  • How to delete the line item from a sales order

    Hi all,
    how to delete a line item from the sales order for which the production is already happened and it has been delivered. the production order status is DLV.
    Regards
    Kumar

    Hi Kumar,
    I think you can just delete it in the sales order directly, if you are using make-to-order scenario, then there will be special stock left for the sales order as the production has been goods receipt, you need to use MM transaction move the stock to unrestricted use stock. If you are using make-to-stock scenario, there should be no further problem. If you are using assembly order, please try to reject the sales order item to see if it could fullfill your requirement.
    Regards,
    Rachel

  • Can we limit the no of line items in a Sales Order

    Can we limit the no of line items in a Sales Order.

    Hi Atul,
    You can use user exit USEREXIT_MOVE_FIELD_TO_VBAP in MV45AFZZ
    Reward points pls.
    Regards,
    Govind.

  • Line item creation in sales order

    Hi
    I am working on User Exit USER_EXIT_SAVE_DOCUMENT_PREPARE. On saving a sales order i need to do some validations and based on the validations i need to add a line item to the sales order in the user exit.
    What are the ways that i can create the line items through the user exit

    Hi,
    It is not a straight forward thing. Adding data to table XVBAP won't work. It will create inconsistency. There are so many other tables involve here too, like, VBPA, VBUP, VBKD, KONV. There can be other tables too based on how your sales order is configured.
    Also, modifying these tables (XTAB, YTAB ) in this user-exit may cause database inconsistency.
    Regards,
    RS

Maybe you are looking for