IDOC(ORDERS05) - Pass payment method on sales order line item level

Hi
We have requirement here to pass payment type(VBKD-ZLSCH) on each line item of the sales order from IDOC. But, IDOC structrure ORDERS05 doesn't have provision to handle this data. Is there any other way to pass this information, except extending the IDOC and handling in the user exit(002) for the same. Please advice.
thank you very much in advance.
Thanks
Lakshman

I was able to fill the event container creating a new FM based on the template FB SWE_CD_TEMPLATE_CONTAINER_FB_2.  At that point, you have access to all of the Change Document information (i.e. CDHDR and CDPOS).  I was able to take the line item affected and set the Event parameter for line item and then pass it through my workflow. 
As I was testing I realized that if I made multiple line item changes, they are tagged with the same Change document number during the same update in the sales order.  As a result, I had to make the Event parameter a multiline parameter.  Now I was trying to set the Event parameter, but I think I was using the Methods SWC_SET_ELEMENT for the multiline parameter.  It wasn't setting it properly.  I think I need to use SWC_SET_TABLE and pass it the whole table. 
I will let you know if this works.

Similar Messages

  • Credit check at sales order line item level

    We are trying to carry out credit checking at the line item level. Standard SD only has credit checking at the document level.
    Does anyone know of any enhancements or notes we can apply to achieve this.
    Thanks Steve

    Hi Steve,
    The field VBAP-CMGST is only at the header level that is the credit      
    status is only available at the header. So when you release a            
    sales order the entire order is released. It cannot be maintained        
    at the  item level.                                                                               
    Note 60672 explains that placing a delivery block on the schedule line   
    level will have this affect on credit management.  Credit bases things   
    on what can be delivered. Please check in the tranx OVZ7                                                                               
    In block quantity confirmation in delivery blocks there is a blocking    
    reason setup (ZI) which blocks confirmation if an item is incomplete.    
    Please see configuration in transaction OVZ7.                                                                               
    Unfortunately, in standard SAP, credit block is applicable to the        
    whole S/O document.                                                                               
    In general, credit is applicable to the customer [soldto/billto/payer].  
    In SAP, this 'customer' is part of header/document level, and not        
    item level.                                                                               
    You can not change this behaviour in IMG or userexit.  
    I hope those information can be useful
    regards
    Ruy Castro

  • Default profit center in sales order line item level

    Hi Experts,
    In creation of a sales order, I want to default the profit center for every line item in the order depending on some logic. How do I go about it.
    Warm Regards,
    Abdullah Ismail

    Hi,
    You would need to implement a user exit:
    try this user exit :
    USEREXIT_MOVE_FIELD_TO_VBAP
    Use this user exit to assign values to new fields at sales document item level. It is described in the section "Copy customer master fields into the sales document".
    regards,
    Advait

  • Deleting Sales order line item

    Hi,
    The sales order line item deletion should not be allowed after accouting of the advance payment is happened.
    How to achieve this.

    Hi Seema
    As far as I could guess you need to grey out VBAP-ABGRU field once you have posted payment for the sales order line item. Since this is a SD related process no validation or substitution would work in this. In this case when posting the incoming down payment through F-29 internally you need to call the user exit in the sales document to update the status of VBAP-ABGRU.
    Thanks
    Indranil

  • Third Party GRN Posting Date to be Copied to Sales Order Line item Billing Date

    Hello Experts
    I have a client requirement where in they want to bill line items in the sales order ( third party process ) to the end customer in sync with the GRN posting dates happened in the PO
    For EG if GRN happened on 1st July 2014 then Billing Date should come in as 31st July 2014 so when they execute VF04 giving from and to dates as 1st july to 31st corresponding sales order can be invoiced
    Actual problem is for suppose if i create a sales order in the month of june say 26th basing on the factory calendar setting and invoicing list maintained in the customer master system defaults the billing date to 30th June 2014 , and the same when user runs VF04 from 1st June to 30th June this sales order shows as due and mistakenly end user invoices the customer ( whereas logical GR would have only received in July 1st )
    My requirement is similar to below threads but i am unable to find answer how to copy GR Posting date to Billing Date of the sales order line item
    use GR Doc date as billing date
    3rd party sales process (w/o ship notif) - Billing

    Hi Lakshmipathi ji,
    As my requirement is to update the billing date at the sales order line item level , As a process user goes in executes VF04
    For Ex
    Sales Order Created Date is 1st June 2014 then System Defaults Billing Date at line item to 30th June 2014
    Now when i do GRN suppose on 1st July 2014 for that line item , system should trigger a code where in check the posting date of the GRN and override the same in the Biiling Date field of the sales order line item
    So when VF04 is run for a month All the GRN which are recieved in the month of July are invoiced in July
    Please share me your thoughts do we need to check any userexits from MM side which reads the posting date of GRN and then copies in to my third party sales order
    Regards
    Hiba

  • Sales order line item user exit?

    Hi Folks,
    Can any one of you suggest me an user exit in sales order line item level?
    I want something which stops before/ or just after entering the quantity in the item level.
    We wanted to set up a issue which deals with rounding profile comming from CMIR record to take from Ship-to rather than standard Sold-to party functionality.
    Thanks a TON in advance.
    Praveen.

    Praveen,
    Check this post
    https://forums.sdn.sap.com/click.jspa?searchID=7098802&messageID=1674246
    Regards,
    Satish

  • Sales Order Line item category not getting Re detemining Correctly

    Dear all,
                I need  help regarding the Sales order item category redetermination.
                we are having two item categories YNAE and YNAG and it contains schedule  line categories CP and CB ( i.e for item         category  YNAE schedule line category is CP and for item category YNAG schedule line category is CB),
    for YNAG Purchase Requisition is automatically created becz of functional setting on save and it is working fine.
    For every line item in sales order line item level item category YNAE will be determined by default as per functional settings.
             Now my requirement is that, if sales order line item doesn't contain 100% confirmed quantity, than i needs to change the default line item category YNAE to YNAG which i am trying to do it in USEREXIT_PRICING_PREPARE_TKOMP becz in this exit i am getting the values in XVBAP and XVBEP and  it is working fine .
             But schedule line category is not getting redetermined automatically what i mean is, if i change the item category to YNAG from YNAE in user exit corresponding schedule line category CB of YNAG is getting determined automatically at the schedule line level and if ichange the schedule line categories in XVBEP in exit USEREXIT_PRICING_PREPARE_TKOMP, changes are reflecting at the schedule line level but Purchase requisation is not getting created for schedule line on SAVE and its delivary dates are also not getting determined properly. If i press the option ATP check at the schedule line level than very things will getting corrected.
       I feel that i am not doing this in proper way, do u have any idea about how to redetermine item category. please let me know if u have any idea .
    Regards,
    Vaddepally Manoj

    USEREXIT_PRICING_PREPARE_TKOMP is the wrong location - that exit is for pricing communication preparation only.  Your primary location for item category determination is USEREXIT_SOURCE_DETERMINATION (MV45AFZB).  In your simple scenario, you could consider making an availability check at this point with some assumptions and then assign the item category accordingly.  Otherwise, you can re-assign item category and schedule line category in USEREXIT_MOVE_FIELD_TO_VBEP.  The exit is called once before ATP (for ATP-relevant schedule line categories) and once afterwards.  The call is recursive if you re-assign another ATP-relevant category.

  • Sales order line item check based on material status

    Hi
    I have the following requirement
    There are Distribution chain specific material status maintained in the material master ( Sales Org1 View). Now for some of these statuses we need to reject these items in the sales order @ line item level. A reason for rejection needs to be assigned for these line items.
    Is there any standard setting or a user exit is required. I believe user exit save_document_prepare could be used to carry out these checks & assign a reason for rejection. Pls suggest asap
    Thanks
    Ramesh

    Dear Ankit,
    The difference between reason for rejection and delivery block is,
    Reason for rejection you can find this field at header level and line item level, the use of this is once you mention any reason for rejection the TOR or Schedule line not been confirmed for that material,so that the material can be confirmed to another customer.
    If you set delivery block the material for sale order in case if the material not available it will rise TOR or if available it will confirm the schedule line and block the material for that customer or sale order.
    This is the major difference between two.
    Regards
    Ram

  • Sales order line item conditin type

    hi experts
      in pricing procedure determination we  at lost we are giving condition type. it was displayed in sales order line item level
    what is the purpose of this condition type.
                                   thanks to every buddy who are trying to give answer this question.
                                        narasimha
                                        [email protected]

    Hi,
    This is to avoid going into the line item and entering the value in the amount field.
    When u assign it there in your pricing procedure determination you can enter the amount in the amount field for each line item and avoid drilling down to conditions tab for each item
    Hope you find this helpful.
    If you, please reward points for contribution.
    Regards
    Ravi

  • Information about the deleted sales order line item in idoc.

    Hi Experts,
    I am new to IDOC.We have the following idoc requirement,
    When a line item is deleted from the sales order(VA02) ,
    the outbound idoc getting triggered for the sales order has the information about the rest all line items other than the deleted line item.We now want the information about the deleted line item in the Idoc .
    Please help me in proceeding further.

    Hi,
    I am facing the same scenario of capturing the  deleted sales order line item in idoc.
    I am using ORDRSP message type , where in E1EDP01- ACTION contains value  "000" .
    And the Deletion line item is not been captured, is there any configuration setting required to
    capture the deleted line item in Idoc.
    Based on the posting in this thread i understand that there is an  indicator which has to be set .
    Please let me know what is that indicator and how to set it?
    Thanks
    Sathish

  • Orders05 sales order line item division mapping?

    Hi could anybody point me to the structure and field for the sales order line item division, found everything else but this one evades me

    Dear Mark,
      ORDER, MATERIAL ,QTY
    input :
    0001  ,  MAT1, 1
       0001,    MAT1,  2
       0001,    MAT1,  5
       0001,    MAT2 , 10
       0001,    MAT2,  4
       0002  ,  MAT1, 1
       0002,    MAT1,  2
       0002,    MAT1,  5
       0002,    MAT2 , 10
       0002,    MAT2,  4
    OUTPUT:
    0001,MAT1,8
    0001,MAT2,14
    0002,MAT1,8
    0002,MAT2,14
    Thank you

  • Revenue Recognition based on User Status of assigned Sales Order line item

    Dear Community members,
    We have requirement to recognize / de-recognize revenue posted to WBS for calculation of RA, based on the 'User status' of the assigned Sales Order line item.
    To elaborate requirement further -
    1) WBS Element - XXX - 10 ( with operative indicator - Plan/Bill/Account Assign)
    2) Sales Order(SO) Line Items assigned to the above WBS -
    - SO No -  123 Line Item 10 - Actual Rev - $ 300 - User Status - EXE (Meaning this work is in progress , partial payment received thus actual revenue for RA at WBS is 'Zero'
    - SO No -  124 Line Item 20 - Actual Rev - $ 400 - User Status - COMPL(Meaning this work is Complete , all payment received thus actual revenue for RA at WBS is $400
    - SO No -  125 Line Item 10 - Actual Rev - $ 800 - User Status - EXE (Meaning this work is in progress , partial payment received thus actual revenue for RA at WBS is 'Zero'
    As per WBS reports Actual Revenue posted to WBS XXX-10 is $ 1500 ( $300$400$800) , however since two SO line items ( SO 123 /line item 10 and SO 125 / line Item 10 ) are NOT having User status 'COMPLETE', the actual revenue posted by those line items $ 1100/- ($300 + 800)  should not be included as Actual Revenue for RA at WBS level.
    Thus Actual Revenue for RA at WBS XXX-10 should be $ 400 /- ( the revenue posted by SO 124/line item 20 which has user status as 'COMPLETE')
    How do above can be achieved?? Is there any standard solution for this?? Is any SAP Note available for this (I too am looking for one but not found any ) ?? do we need any enhancement , Customer exit etc
    Thanks in advance
    with regards

    Hi,
    Thanks. You are right that the 'Completed Contract Method' would defer revenue recognition. However, the status checked would be of the RA object (WBS Element in this case, as RA key is on WBS and RA is being calculated on the WBS).
    However, our requirement is to check the user status of the Sales Order Line items assigned to the WBS element and filter the revenues posted based on the active user status of individual Sales Order Line item.
    Please give you inputs.
    Thanks in advance
    With regards

  • Custom program for availability check and update for existing sale order at Item level(VA02)

    Hi,
    I came to know Bapi_Saleorder_Simulate can be used for availability check and update an existing sale order.but there is no sample program explaining the process.I have tried this by passing parameters ORDER_HEADER_IN , ORDER_ITEMS_IN  ,ORDER_PARTNERS and ORDER_SCHEDULE_EX(for getting details),also i have assigned the sale document number ,custom document type(ZSO) in ORDER_HEADER_IN . while executing the BAPI I am getting the error external number range is not assigned for the document type ZSO . I am confused on seeing this error. It is possible to do availability check for existing sale order using this BAPI. Please explain how to achieve this.It will be really helpful if it is expalained with an example.   
    Regards,
    Shanmuga

    Hello, I think you may have been misinformed about this BAPI updating a sales order at item level. As far as I understand it this BAPI can be used to simulate the creation of a sales order which obviously would include and ATP check. This is why it is giving the error because it is simulating creation but you are entering a value in a field that should be automatically generated (i.e. the sales order number). For change the sales order at item level have you looked at BAPI_SALESORDER_CHANGE? I pretty sure this BAPI both updates sales order (header or item level) and can do an ATP first.
    Points are always welcome if you feel an answer has been helpful.

  • Field added in Aditional data tab of sales order line item at screen 8459

    Hi all,
    My problem is .
    I have appended one field in VBAP table, given it a name "WBS ELEMENT"
    The field is getting displayed in VA23 as well as VA02 Transaction.
    when i create sales order with the quotation reference,
    the "WBS Element"  of line item of quotation should get updated in "WBS Eleement "  of sales order line item
             This i am doing by triggering user exit.
    Problem is:
    Once Quotation  line item get copied to the sales order line item
    and the screen is in front of you with those details,
    before saving sales order .
    if you go at the sales order line item withou saving the document
    The field i have created in the screen 8459 i.e WBS Element ,doesnt get displayed.
    how could i retain the field Ihave created on screen 8459
    while creating the sales order from quotation before saving that sales order.
    Pleas help .

    Hi Vikram,
    It seems as it has been coded only to save the values into the new field that you have appended to VBAP. But before saving if the user wants to see the field, it is blank. You can try coding in PBO (process before output) of the relevant screen as follows:
    1. Get the reference of the quotation. Something like XVBAP-VGBEL will give this number.
    2. Get the value of Z field in VBAP by passing this quotation.
    3. Copy the above value to the corresponding Z field in XVBAP (or any internal table which holds VBAP data before saving)
    Please reward if helpful.
    Regards,
    Krishna

  • Sales Order Line item characteristics (classes)

    I am not 100% sure what I am talking about but I need to get characteristics for materials on sales orders (line items).  I am told that these characteristics are stored in classes which get assigned to materials via the material master.  I am also told that these characteristics (classes) are created/maintained in transaction CT04.
    My ultimate goal is to create an iDoc similar to LOIPRO01 only include the characteristics for each material.  I imagine that I will be getting the characteristics from a BAPI or FM but I do not know which one.  Also, is there an existing iDoc that contains the fields of LOIPRO01 and also the characteristics?  Right now my plan is to copy LOIPRO01 into a Z iDoc and add the characteristics.
    I did search and I found that people were suggesting BAPI_OBJCL_GETDETAIL and FM CLAF_CLASSIFICATION_OF_OBJECTS.  However, I ran them using the test functionality and they didn't seem to return what I need.
    Regards,
    Davis

    Max,
    Thanks but those give me the details of the characteristics but I need the characteristics of the line items on an order.  I am looking for the way to link up the line item to the characteristics. 
    Davis

Maybe you are looking for

  • Crystal Reports Server XI - what files need to be backed up?

    I don't want to set up a fail over cluster which there seems to be plenty of information on. All I want to do is identify what files I need to backup incase I need to do a restore. We use Tivoli Storage Manageru2019s backup and recovery solution for

  • Control/Observe Mode Windows 10

    BirdLaw wrote: For Windows 7 and 2008 R2, there's something called Remote Assistance or MSRA.exe /expert (allows unsolicited remote assistance) that will allow you to do this. I would imagine that they have it in Windows 10 and Windows 2012 as well.T

  • How do I fully sync all music under iOS7?

    I downloaded iOS7 when it came out, since then I have lost access to my full music library, I have: 1. factory reset the iPhone and attempted to re-sync 2. saved to the Cloud and attempted re-sync 3. set the bit rate to 128, undid that 4, selected on

  • Logic Pro 8 won't open a project??

    Hey Guys, I have recently been working on a track on logic pro 8 when for no reason, that I can think of, everything froze and I couldn't click anything, or do anything, i couldn't even force quit, it just had the swirly circle thing. Luckily I had j

  • Moving code from TFS 2012 to TFS 2013

    Hello - I am working on moving the existing code from TFS 2012 to TFS2013. Under Team Project Selections, there is new branch created as shown in figure. I am new to TFS, can anyone please provide me step by step procedure in moving code to this new