Unloading Points (KUWEV-ABLAD) on Sales Order Header via BAPI

Hello all, first day posting on this forum, but I thought I'd answer a question before posting my own.
We've built a nice .net based solution to entering sales orders into SAP using BAPI's, however I cannot find where we can set the Unloading Point ( field KUWEV-ABLAD) at the header level for a sales order. We're using BAPI_SALESORDER_CREATEFROMDAT2 to create the sales order, and that works fine, but there's nothing in ORDERHEADERIN to set this field.
I found a field in ORDERPARTNERS, called Unload_Pt , which relates to an ABLAD field, but passing the value to this parameter doesn't seem to work, which makes me think that it's a different unlaoding point.
Can anyone help me here? Does the parameter not exist? Do I have to extend the BAPI (something I've never done before) or is there a simple method of updating the field directly somehow?
Any help would be appreciated,
Thanks
Matthew

I've found the answer to this problem, in case anyone comes across this forum when searching in the future.
the answer WAS to use the UNLOAD_PT field, but (and this should have been obvious) you have to add a line for the Ship-to-Party in the ORDERPARTNER structure, this has the function parameter "WE" (you'll have a line for sold-to "AG" already)
you can then enter the text of the correct unloading point into the UNLOAD_PT field
hope this helps
Matthew

Similar Messages

  • How to add a new output type in sales order header via ABAP program

    Hi All,
    I have to add new output type (ex Z001) in sales order header via an ABAP program. please let me know how to do this.
    Thank you all in advance.

    Hi,
    You can use the FM ..RV_MESSAGE_UPDATE..
    Thanks
    Naren

  • Error while loading data from sales order header via LO-Cockpit extraction

    Hi Guys
    I activated sales order header d/source 2lis_11_vhdr using 3x funtionality ontop of BI 7.0 dataflow. While creating infocube I am getting an error saying that " Infoobject 0RATE_TYPE is onl allowed as an attribute (not in infoprovider)"
    Also while creating the same cube I am not able to move UNIT objects to UNIT dimension (as it dont allow me to drag and drop)
    Can anyone please advise me why I am not able to activate cube based on above mentioned error.
    Thanks in advance.
    regards

    Hi,
    To be able to load transaction data for 2010, you should have the master data for that in the time dimension. For this, you need to go to BPC admin and add the dimension members in the time dimension manually.
    Alternatively, you can have a process to import master data from BI system also. You can do some more research on this. Please refer to the below link from help.sap:
    http://help.sap.com/saphelp_bpc75_nw/helpdata/en/46/fcc2ef34ee439aaa56a4f6ba001e4d/content.htm
    http://help.sap.com/saphelp_bpc75_nw/helpdata/en/e0/532af2d0804218a59157136bb63a98/content.htm
    http://help.sap.com/saphelp_bpc75_nw/helpdata/en/73/0f917879fd416099d04fb4c49889e0/content.htm
    http://help.sap.com/saphelp_bpc75_nw/helpdata/en/88/e16046853041b391314a91bfe3618b/content.htm
    Hope this helps.

  • Problem in sales order change via BAPI

    We are in AFS system and we try to reduce a quantity in sales order via BAPI.
    We recive back an error 8w 280. We are not able to find wich is and where is a problem.
    Does anyone have experince on that problem/error message
    Thanks in advance
    Andrea

    Hi Andrea,
    Since BAPI invloves more programming stuff, I adivce you to post this thread in the ABAP forums also.
    Regards,
    Senthilkumar SD

  • Sales order copy via BAPI

    Hi developers,
                 does anybody know if there is a bapi to copy a sales order starting from a different order?
    What I'd like to do is calling a bapi with the document number of the sales order I have to copy as input and obtain a new one identical to the first.
    Is this possible?
    Thanx to all of you and have a nice day.

    Please check in to BAPI_SALESDOCUMENT_COPY.
    Regards,
    Rich HEilman

  • Receiving Point- @ Sales Order Header Level

    Dear Experts,
    I have to maintain receiving point at sales order header leve shipping tab. When i am trying to choose options it's telling no possible entries. If i want to get here what i have to config. Please suggest me.
    Thanks in advance,
    VS

    HI ,
      Pls maintain the entries in the following path.
    Go to XD02 tcode and in General data -
    >unloading points----> click on receiving points there u can maintain  the receiving point and save.
    and then when creating sales order for that customer  the receiving point  will be automatically comes in dropdown.
    regards,
    ksihore.

  • How to add a field in sales order header

    Hi all,
    I need to add a custom field say a check box in sales order header in additional data B tab.
    let me know step by step.
    Points will be rewarded.
    Thanks.
    Ramya

    additional data B in sales order
    sales order - Additional data B
    Add new fields to Additional Data B tab in sales order
    Reward Points..

  • Need help in Sales order Header Details

    Hellp Experts,
    I need to modify data on 'Additional Info B' in Sales Order Header (VA03 Transaction) . As it is a Standard program I am aware that we have to use user Exits. But before that I have to debug the code to that point. I wish to know info from where a particular data is coming in the field (End User). How should I proceed for debugging? Can anybody help me?
    Moderators,
    I could n't found any similar question when searcher. If it is can you please provide me the links?
    Best Regards,
    Harish
    Moderator message: debugging is standard developer practice, enhancement of this screen has been discussed many times, it seems you did not look in the right places.
    Edited by: Thomas Zloch on Nov 30, 2010 5:48 PM

    Hi Harish,
    Perhaps have a look at the following thread...
    Additional Data B tab blank in VA01
    Have a look at some of the includes mentioned in the thread and if you don't find the information there, you should at least be pointed in the right direction.
    Kind Regards,
    Richard.

  • Requied code in abap to display sales order header text

    hi all,
    can anybody help me to send the code in abap to display sales order header text.

    Use FM, Read_text. Pass the necessary parameters like object name, id, language. You can see some of the infos in by clicking the scroll-like button.
    Reward points if useful

  • Sales order header data change by using the ORDERS05 IDOC

    Hello Team
    I am getting sales order number and some code value from the legacy system. i need to check whether the sales order is avialable in SAP or not. if it is there, i need to update the CODE value (ie for example ABC100) in sales order header data> order data> your reference field.  For doing this i am using the IDOC type ORDERS05 and message type ORDCHG message type.
    Now i want to know what are the mandatory fields which i need to do the mapping for the IDOC ORDERS05, to change the sales order header data. please check and suggest me the required fields of the IDOC to be mapped, so that i can change the sales order header data.
    Please correct me if i am doing something wrong here.
    Regards
    Rj

    Hello chirag
    Thanks for your reply. My requirement is to change the sales order which is already avialable in SAP. Just i need to change the header data of the sales order, for example if i am getting the sales order as 1000 and CODE as ABC100. i need to change the Sales document number 1000 and put the code ABC100 in sales order header data>orders data>your reference field.
    So now i want to know the below points
    1. what are the mandatory fields for which i need to pass the values for the IDOC ORDERS05.
    2. what is the user-exit used for picking up those values from SAP because i am getting only sales order number and CODE values from legacy system.
    Please check and suggest me accordingly.
    Regards
    Rj

  • How to create a sap script for sales order header items?

    Hi friends i am totally new to scripts i have got a task where i have to create a sap script for sales order header items details, the clue that i have got is to create using MEDRUCK but i have got no idea please can any body help me with this task with any sample sap script?
    Points will be rwwared with out fail Thks in advance.

    Hi,
    The Standard Form NAme is RVORDER01
    Regards
    Sandipan

  • Sales Order Header Text....

    Hi All,
    I have given some text in sales order header. I want a field and table name of text entered in sales order header.
    Yusuf.

    Hi,
    Try this table STXH ( SAP script text file header)
    For more details on tables in sd go to link given below
    http://www.erpgenie.com/abap/tables_sd.htm
    Award points if helpful
    Regards,
    Amrish Purohit

  • User Status update on Sales Order Header

    Hi all,
    I need to update the "User Status" on sales order header when a sales order is saved. As user status reside in JEST, what available user exits are there to change/insert new user statuses? I don't believe the common exits like MV45AFZZ would do.
    To clarify, to get to these user statuses, you go to the header of the sales order, select on the 'Status' tab, then click on the "Object Status" pushbutton.
    Any help would be greatly appreciated in the form of points!
    Thank you.
    Liam

    Hi Liam,
    In the Program MV45AFZZ in the FORM userexit_save_document
    you use the following fn module to change the user status
    'STATUS_CHANGE_EXTERN'
    Example
    IF t180-trtyp = 'H'.  "Only creation time
      READ TABLE xvbap WITH KEY matnr = c_matnr.
      IF sy-subrc = 0.  "If above material exist then change status
        LOOP AT xvbap WHERE cuobj NE space
                       AND  matnr =  c_matnr.
          l_objnr = xvbap-objnr.
          CALL FUNCTION 'STATUS_CHANGE_EXTERN'
            EXPORTING
              objnr               = l_objnr
              user_status         = 'E0013'  "Send ej IDOC
              set_chgkz           = 'X'
            EXCEPTIONS
              object_not_found    = 1
              status_inconsistent = 2
              status_not_allowed  = 3
              OTHERS              = 4.
        ENDLOOP.
      ENDIF.
      sy-subrc = 0.  "Restore the previous condition
    ENDIF.
    Reward if helpful *********

  • Line item Ship-to Info is not the same in Header Ship-to Party During Sales Order Creation via IDOC

    We have observed that during creation of sales order using idoc, the line item ship-to party is not the same with header ship-to. The ship-to party info in line item is equivalent to the header's sold to party. To give you a quick background, Sold to party info is given in idoc and ship to party is being determined using table EDPAR. In this specific scenario, sold to customer is not the same with ship to customer.
    Initial checking on the code leads us in function module VIEW_KUAGV. This FM populates partner details of sales order header and line item in program LVEDAF1Z
    Below is the code for Sales order Header. Notice that WE_INPUT parameter which contains Ship to party is passed as exporting parameter in FM VIEW_KUAGV. This is the reason why Ship to Party is populated correctly in sales order header but not in sales order item.
    Initially, it first set to Sold-To Party. However, if WE_INPUT is given or provided, partner details is set to Ship-To Party.
    Please advise on how we can make the ship to party info in header and line item be consistent. This is SAP Standard program which why we are hesitant to make change on the program. If there is a configuration to make this happen, kindly advise.
    Regards,
    Rommel

    Hi Jayesh,
    If I understand you correctly, you want that when creating SO from Quoatation
    the Ship to Party also follow/copy Ship to Party from Quotation, right?
    Just to confirm with you, when you creating SO reference from Quotation, you
    use copy/follow-up function, am I right?
    You can do this by setting in configuration of Copy Control (like mentioned by Hui).
    Step as follow :
    1. Go to IMG->CRM->Transactions->Basic Settings->Copying Control for
        Business Transactions
    2. Create your BAdi (Business Add-In for Copying Control), such as get Ship to
        Party value from source document and use it in current document
    3. Use this Rule you have created in BAdi (no. 2), in copy control transaction type
        IMG->CRM->Transactions->Basic Settings->Copying Control for
        Business Transactions-> Define Copying Control for Transaction Types
    4. Here you set Copying Routine for your transaction types (put name of your Badi
        created in step no. 2)
    Or alternatively, you can set it on access sequence in Partner Function
    Ship to Party in configuration. You can define access sequence the Ship
    to Party is taken from Preceeding Document -> Ship To Party
    1. Go to Partner Function access sequence :
        IMG->CRM->Basic Functions->Partner Processing->Define Access Sequence
    2. Create new access sequence with following entry :
        - Source COM_PARTNER_A (PrecedingPartner)
        - Check Mapping for Partner Being search
        - Partner Function in Source  = Ship To Party
    3. Assign this Access Sequence in you Partner Function used in Sales Order Transaction
       Type.
    Tell me if this is what you looking for
    Gun.

  • VA01 Sales order - Header-- Accounting tab need to add a field

    Dear All,
    The requirement is,
    1. I need to add a field in Sales order.
    Path for the same is as follows:
    VA01> Goto> Header--> Accounting tab
    2. The field will be a date field that needs to calculate date on.
    a)create a new field. ex - zchdt (chq due date)
    b)when customers enters value in Assignment,
    i.e vbak-zuonr
    after that trigger logic is
    3.vabk-kunnr = knvv-kunnr
    a)sy-date + knvv-kvgr2 (exclude sundays)
    example - 14 sept + 30 days = 14th october
    should populate value - 14th october i.e. field (zchdt)
    4. This activity needs to be triggered before the sales order is saved.
    kindly know whether this is possible or not.
    if possible how & which exit & also with example code.
    if you could give me your contact(cell no).
    Regards,
    Nagendra D.S.
    Mobile - +91 9819899082

    Hi All,
    VA01 Sales order - Header--> Accounting tab need to add a field. field name - zchdt(cheque due date)
    when customer enters value in Assignment i.e zuonr & after that trigger logic is
       1.     vbak-kunnr = knvv-kunnr
       2.     sysdat + knvv-kvgr2 (exclude sundays)
    example - 16 sept + 30days = 16 oct
    in field zchdt value 16 oct as to populate
    Pls help me in the code.
    Regards
    Nagendra

Maybe you are looking for