Partnerdetermination in CS-Order - Userexit ICSV0003

Hi,
i have the requirement to have the ship-to-party, bill-to-party and others filled from the ordering party master data (table KNVP). I realized this in Userexit ICSV0003.
I face the issue that this user exit is only processed if an equipment is entered or changed.
But we have some situation where we create serviceorder without equipment.
In this case only the sold-to-party will be entered and the other partner roles shall be filled via own coding.
Is there another userexit or something which i could use for orders without equipment?
Or do you have another idea for me?
Thank you
Best regards
Manfred

Hi,
the BAPI BAPI_ALM_ORDER_MAINTAIN allows changes on the partner data which is fine.
But how could we call this BAPI within a not yet saved CS ORDER?
Thank you
Kind regards
Manfred

Similar Messages

  • How to get xveda values in sales Order userexit MV45AFZZ

    Hi guys,
    Tables XVEDA and YVEDA has no entries in sales order userexit. Do you know how to get contract end dates of line items in sales order user exit

    Used function module SD_VEDA_SELECT to solve the issue

  • How to Carry out New Pricing in Sales Order userexit

    Hello,
    In userexit save_document_prepare of program MV45AFZZ, I'm adding an entry in XKOMV for a header pricing condition ZD01.  After saving, if I go back into the order and go directly into the line item conditions, the ZD01 does not exists at the item level.  If I navigate the the header conditions and then go back to the items, ZD01 appears as it should.  I believe what is happening is that the header condition is not being distributed to the line items unless New Pricing is carried out.  If I manually enter the ZD01 condiiton instead of relying on the userexit code, everything works fine.  The header condition is properly distributed to the line items.  Therefore, I believe the configuration is correct.  My question is, "How can I programatically trigger New Pricing from a sales order userexit".  Is this possible in SAVE_DOCUMENT_PREPARE or do I need to do it somewhere else.".
    Thank you,

    this problem has been resolved.  The problem was that I was appending the header condition to XKOMV instead of inserting the header condition as the first line in the table.  SAP will carry out the new pricing if the header condition is on the first line.

  • Production Order Userexit or BADi

    Hi Everybody,
    Can someone tell me if there is a userexit or BADi which gets triggered when the we are doing availability check from VA01 to create the Production Order?
    This is an urgent requirement.Any help will be greatly appreciated and rewarded :).
    Thanks,
    Supriya Manik.

    Hi Siri,
    As far as I know you can't get hold of the availability check at the Sales Order leve or MRP level.
    According to my knowledge when you enter the material and quantity control goes to MM03 by entering the plant in MRP3 view. From there it will pick the availability check and determines rest of the thing.
    So check point would be at ATP Quantity level. At that point you need to check exact include to add the code.
    Check the program SAPMV45A and in that u will find lot of includes in that. Specifically check the includes MV45AIZZ and MV45AFZZ. If you check those includes u will come to know the exact triggering point from  there you can write the code in the user exist what i mentioned above.

  • Sales Order userexit

    Hi folks
    I try to replace default value of VBAK-KKBER with another value during sales order creation in VA01. I could find structures like VBAK, XVBAK, YVBAK, SVBAK, etc in MV45AFZZ. I assigned new value for KKBER field in these structures and tested. I tested userexit_save_document, userexit_move_field_to_vbak and another userexit EXIT_SAPFV45K_001. But could not replace VBAK-KKBER value, after sales order creation VBAK table shows old default value.
    Anyone can give me an idea to solve my issue.
    All helpful answers will be awarded.
    Thanks
    HBK

    Bala,
    Set a breakpoint at the place where you change the KKBER value.  When you reach that breakpoint, step thru it.  Then immediately after you set the value to your liking, create a watchpoint in the debugger on VBAK-KKBER.  This will expose the code that is changing VBAK-KKBER from your value to another value.
    Investigate why that is happening and address it then.
    I might also suggest changing the value in UserExit Userexit_save_document_prepare INSTEAD of userexit_save_document.

  • Sales order Userexit to copy item text from one line item to other

    Hi Gurus,
                 I have an urgent issue. Based on item category in sales order, for one line item, I am getting item text. Now I have to copy same item text to other line item.
    Till now I tried save_document_prep & save_document to
    build object tdname & fetch all tdid from table stxh for object 'VBBP'.
    After that READ_TEXT and SAVE_TEXT function module.
    But during creation of sales order I am not able to get any value in STXH table for created sales order. Now I want to know from which internal table I can get item text ?  (some internal table should be there like xvbap to get text per line item)
    Or is there any other way to do this... Please help.
    Points will be rewarded.
    Thanks,

    Hi ,
    try something like this .
            l_name = ls_vbap-vbeln.
            IF l_name IS INITIAL.
              l_name = 'XXXXXXXXXX'.
            ENDIF.
            CONCATENATE l_name ls_vbap-posnr INTO l_name.
            CALL FUNCTION 'READ_TEXT'
                name            = l_name
    Regards
    Prabhu

  • Duplicate Sales Order - UserExit or BADI

    Hi,
    I have a requirement for one of my workflow.
    When duplicate sales order is received through EDI , I need to notify to Customer service team.
    If purchase order and ship-to is same and PO date is within 30 days, need to notify that it is a duplicate sales order. Do we have any user-exits or BADI'S for this requirement?
    Thanks
    Ashu
    Edited by: Ashu on Jul 8, 2009 9:10 PM

    Hi Ashu,
    Customer function module EXIT_SAPLVEDA_001 (with include ZXVEDU03). This is called for every segment.
    Customer function module EXIT_SAPLVEDA_011 (with include ZXVEDU13). This is called after segments are filled. I suppose this is the correct one. Make your validation and fill the error table DERRTAB with the message.
    Customer function module EXIT_SAPLVEDA_010 (with include ZXVEDU12). This is used to change the idoc status, as well you can trigger the workflow.
    Customer function module EXIT_SAPLVEDA_005 (with include ZXVEDU07). You can check this.
    All my suggestions are based after checking the code. Please debug before you use them.
    Please update the thread with your approach.
    Thank you,
    Goutham.

  • Sales order should get block if XYZ payment terms is used

    Dear Expert,
    The requirement is like,
    If user add payment term XYZ  manually in salse order then that sales order should get block for review purpose.
    Note:
    if user add that payment term in sales order client want that order should block no matter what reason ,  here client not concern about credit limit and any outstanding from customer side ,
    Thanks in advance
    hanumant

    Hi,
    You need to block orders with payment terms XYZ, or only when user changes from ABC to XYZ??
    If first one is your requirment, you can do with userexit - USEREXIT_SAVE_DOCUMENT, and you need to create status profile for sales document type and assign to order type, in status profile put status AUTO - automatically approved, LOCK - when XYZ is payments terms it wil not and not create delivery & REJC- Rejected, when approver dont want to approve he can reject.
    In sales order userexit you need write logic when paytemnt terms is XYZ then put status as LOCK.
    New repor need to create to approve LOCKed orders so that user execute and approves or rejects.
    If only user change to XYZ, then you need to write logic in prepare userexit, but it will be tricy, need to store values in tempapory memory, ceck with abaper,

  • USEREXIT_ADD_FIELD_TO_LINE for updating sales order loading dates

    Hi,
    I have a requirement to update the loading date in the sales order scheduling lines. I am trying to do it in <b>USEREXIT_ADD_FIELD_TO_LINE</b> in program SAPFV45V but there is also a comment in the userexit stating field needs to be added to structure AV03VZ. Is this required? The code seems do fine without using the structure. Also, should I be modifying the include <b>FV45VFZZ_USEREXIT_ADD_FIELD_TO</b> itself or should I do it through CMOD. If so, what would be the enhancement?
    We are in 4.7, it looks like from rel.>4.6, we should be using include <b>FV50XATP_USEREXITS</b> instead, but during debug, the codes in this userexit never get called. Are these two exits doing the same thing?
    Does anybody know which one should a 4.7 systems be using to modify the loading date?
    Thank you,
    Minami

    Found out that we do need to modify the include its own. And the FV50XATP_USEREXITS is being executed when the delivery due list is executed, not when the order is created so in order to influence the loading date in the order, userexit in SAPFV45V needs to be modified.
    Question closed.

  • Billing Block in crm order

    Hi all,
    this is the situation: when a sales transaction is created in CRM and saved it is directly transferred to R/3. Now the problem is that this document must be blocked for billing till a certain User Status.
    I'm trying to pass the value thought a Badi implementation but seems that this is not correct.
    Any idea of what should I do or someone that had the same problem solved it?
    Tnx in advance.
    P

    Paulo,
    To my knowledge the user status is not transferred from CRM to R/3 via standard middleware. you have to do enhancements to transfer the user status. Use BADI order_save and the sales order userexit in R/3 to do the enhancements
    Thank You,
    Vimal

  • CRM Availability Check not working for certain Item Category

    Hi there,
    I have a situation where for certain order type/item category combinations, the availability check on the same material is not working.
    The check is set up to happen in SAP ECC.
    I have checked the config. under SPRO->CRM->Basic Functions->Availability Check->Availability Check using SAP ECC
    as per many SDN posts on this, and everything looks fine.
    The new item category, which was a copy of an existing one, works (i.e. gives availability) for certain order types, but not others.
    If I create the same order directly in ECC, it works correctly every time.
    I searched the code (from consultants who set it up originally) and can see nothing specific to the order type/ item category.
    I also put a breakpoint on AVAILABILTY_CHECK function module in SAP ECC - it is not being hit, in the case where check is not successful.
    Breakpoints in MV45AFZZ (Sales Order userexit) also not being hit, but they are hit for the Order/item category combination when it works successfully.
    Any suggestions on where else this could be configured would be appreciated!
    thanks,
    David

    Hi David,
    One 'simple' reason for this could be that the copied item category does not have the
    ATP Profile set up in the item category in the IMG. Make sure you have an ATP profile assigned in the area 'ATP Profile' in the item category.
    Please see as well the SCN Wiki link:
    Availability Check CRM-BTX-BF-ATP - CRM - SCN Wiki
    Best regards
    Christophe

  • Release strategy for sales docs.

    dear all,
    we have a process in sales ,that we create scheduling agreement or sales order .It will have to be released by 4 different people with  different levels .Once released documents should not be modified by anyone except amendment procedure.
    Pls suggest as to how to achieve this ...
    thanks
    shankar

    This release procedure is not available in SAP for sales .
    you can create Z*tcodes for this, for 4 diff ppl or levels
    maintain the delivery block in sales order ( which will trigger directly from sales doc type)
    in create sales order - made this "display mode"- by using transaction variant.
    Now create
    Z*
    Tcode- ZLVL-1 - 
    a-Waiting for approval
    b-approved level-1   - in this level, he can access only these 2 fields either a or b.
    Tcode: ZLVL-2
    c-approved level-2
    similarly next 2 levels.
    d- approved level-3
    e-approved level-4
    Give tcode authorization only for respective levels-
    eg:level 1- ZLVL-1 n so on,
    Now in sales order , userexit, write a logic
    if the "delivery block " - approved Level-4 (E),
    then , allow to save the sales order
    or else trigger error mssg as " Not yet approved, cant save the document"-
    hope it helps, without development i dont think its possible.

  • How can I get the solution for below scenario (SD Pricing)?

    Hi SD experts,
    Can anybody provide a solution to match below requirement scenario ? (Retail promotion or condition alone)
    For a Customer :
    1.Buy 1 Product A and 1 Product B --Discount 5%
    2.Buy 2 Product A and 3 Product B --Discount 10%
    Thanks&Regards,
    Don

    Hi,,
    you can go with two options here.
    1. you can either go with a manual condition type
    or
    2. you can have an enhancement in the sales order userexit where you can hard code tha materials and check for quantities and apply the discount which can also be  hard coded in the program it self.
    as a result the system will check the quantities and the corresponding discount will be applied.
    user Exit:  MV45AFZZ
    hope this will solve the problem.
    regards
    ravi.

  • EXIT_SAPLVEDA_001 Query

    Hi,
    I have created an extension to the standard ORDERS05 idoc to include a couple of extra flags.
    I have extended the VBAK structure to include the 2 new fields and I have added code within EXIT_SAPLVEDA_001 to populate xvbak with the values from this flag as follows:-
    IF segment-segnam = 'ZE1EDK01'.
      s_ze1edk01 = segment-sdata.
        hxvbak-ZZFULFILLALL = s_ze1edk01-zzfulfillall.
        hxvbak-ZZPRICEMISMATCH = s_ze1edk01-zzpricemismatch.
        MOVE hxvbak TO dxvbak.
    ENDIF.
    However, later in the Sales order useexit, I want to set reason for rejection based on the values of these flags.
    I have debugged the code and I can see that the xvbak structure is correctly updated within EXIT_SAPLVEDA_001  when an idoc comes in but the values in the xvbak structure don't seem to be available in the xvbak structure within the Sales Order Userexit (MV45AFZZ).
    Can anyone advise on whether this should be possible and if so, what I am doing wrong.
    Thanks,
    Ruby

    Sorry, I should have been clearer.
    It's a customer exit and the definition is attached below. This is called from within FM IDOC_INPUT_ORDERS which is called when an idoc comes in. When this is called, xvbak is passed into dxvbak.
    When I debug this, I can see the dxvbak and hence the xvbak fields being populated as I expect but by the time I get into the Sales Order User Exit (MV45AFZZ) the new xbvak fields are blank.
    I just wondered whether I have missed a step somewhere.
    FUNCTION EXIT_SAPLVEDA_001.
    ""Lokale Schnittstelle:
    *"       IMPORTING
    *"             VALUE(SEGMENT) LIKE  EDIDD STRUCTURE  EDIDD OPTIONAL
    *"             VALUE(DVTCOMAG) OPTIONAL
    *"             VALUE(DXMESCOD) LIKE  EDIDC-MESCOD OPTIONAL
    *"             VALUE(CONTRL) LIKE  EDIDC STRUCTURE  EDIDC OPTIONAL
    *"       TABLES
    *"              DXBDCDATA STRUCTURE  BDCDATA OPTIONAL
    *"              DXVBAP OPTIONAL
    *"              DXVBEP OPTIONAL
    *"              DYVBEP OPTIONAL
    *"              DXVBADR OPTIONAL
    *"              DYVBADR OPTIONAL
    *"              DXVBPA STRUCTURE  VBPAVB OPTIONAL
    *"              DXVBUV OPTIONAL
    *"              DD_FLAG_P OPTIONAL
    *"              DXKOMV OPTIONAL
    *"              DXVEKP OPTIONAL
    *"              DYVEKP OPTIONAL
    *"       CHANGING
    *"             VALUE(DXVBAK) OPTIONAL
    *"             VALUE(DD_FLAG_K) OPTIONAL
    *"       EXCEPTIONS
    *"              USER_ERROR
      INCLUDE ZXVEDU03.
    ENDFUNCTION.

  • BAPI - Sales document - Copy control issues

    Hi,
    I am creating a Credit memo referencing an invoice using the function "SD_SALESDOCUMENT_CREATE'.
    I get the invoice pricing details using RV_INVOICE_DOCUMENT_READ. Populate the inputs manually and pass those values to SD_SALESDOCUMENT_CREATE' with the flag  logic_switch-pricing set to  'G'.
    I have two issues,
    1. Group conditions(Freight) value is not copied from the value that is passed.   Please let me know
    2. pricing procedure is not copied. But I was able to overcome this by exporting the invoice pricing procedure to memory before calling the fn "SD_SALESDOCUMENT_CREATE" and importing the value in the Sales order userexit(MV45AFZZ) and change pricing procedure in tables tkomk / VBAK . Not sure if this is the correct way to implement. Please advise.
    Thank You.

    Hello
    If you want to copy all the details from invoice to credit memo request and modify the pricing type to 'G', then
    please follow the below steps
    1. Use BAPI_SALEDOCUMENT_COPY - This will copy the invoice data to credit memo.
    2. If you need to modify the Credit memo data based on credit memo type then ask the functional owner to put the custom copy control routine (VOFM routines) and you can modify the custom routine for the VBAK/ VBAP and VBKD etc as required.
    3. For the pricing issue, you need to implement a BADI in program MV45AF0T_TVCPA_SELECT. The enhancement spot is Enhancement-point TVCPA_SELECT_01 SPOTS ES_SAPMV45A.
    Here modify TVCPA-KNPRS = 'G'  when TVCPA-AUARN = < Credit memo Type>.
    There may be other validation, depending on the business need.
    Let may me know, it helps you. Thanks.
    Edited by: Atul Mohanty on May 31, 2011 8:12 PM
    Edited by: Atul Mohanty on May 31, 2011 9:14 PM

Maybe you are looking for

  • XM Publisher issue

    XML Publisher observed that special characters XML Publisher Concurrent report output throwing errors apps:11.5.10.2 os:AIX APPLLCSP Environment Variable set to : XML_REPORTS_XENVIRONMENT is : /xxxx/app/oracle/xxxx/8.0.6/xxxxx/tk60/admin/Tk2Motif_UTF

  • Does anyone make a remote control for vixia hfr200 camcorder

    i am wanting to start a you tube channel but could really use a remote control zoom for cannon vixia hfr200 camcorder but so far have had no luck finding one. Do anyone know if someone makes one???

  • Table Field Short Descriptions

    If you go into the Repository Information System (SE83), then drill down to ABAP Dictionary->Fields->Table Fields, you are allowed to enter a table name to display its fields and short descriptions.  I need to know what table the short descriptions a

  • ERP Sales Order

    Hi CRM gurus: Have any of you implemented the "ERP Sales Order" functionality in CRM? What are the major pros and cons?

  • Time machine could not complete backup

    I am getting the following message "the backup disk image "volume/.....macbookpro.sparsebundle." culd not be accessed (error -1)" I am backing up to a NAS drobo FS have a partitioned time machine drive was able to make a complete backup just an hour