Order entry user exit flags

I have a problem that I have tracked down to the code below.
In order entry through EDI, if a material is not on the customers buying list it is rejected by setting ABGRU. The problem occurs when the last 2 lines are rejected we get strange error messages like customer not maintained in dist channel xx or posting date is in the past.
At the end of the inbound orders user exit (EXIT_SAPLVEDA_001  include ZXVEDU03), we do this (see below) but I do not know why we set flag PBES = 'X' ?
What does it do?
When I remove the line setting PBES, it is OK
But before I can make a change to the live system I need to know what this does. Pls help
  Update output parameters
    IF NOT xvbap-abgru IS INITIAL.
      d_flag_p      = dd_flag_p.
      d_flag_p-pbes = 'X'.
      d_flag_p-pde1 = 'X'.
      dd_flag_p     = d_flag_p.
      dxvbap        = xvbap.
  Update Material No if mapped from EAN Code
    ELSE.
      dxvbap        = xvbap.
    ENDIF.

Hi,
You can maintain Production Storage location in BOM as well as you can maintain also in Material Master--> MRP-2 View--> Production Storage location.
So system will by default take the respective storage location and user need not select each time manually.
For this purpose, you need not implement any exit.
Revert in case any doubt.
Hope this solves your problem.
Regards,
Tejas

Similar Messages

  • Sales Order Pricing User Exit Problem

    Hi,
    I am facing a problem related to coding in Sales Order pricing user exits. Scenario is as mentioned below:
    Based on Material Entered and Sold To in Sales Order, auto determination of a manual pricing condition happens. For doing this, coding has been done in USEREXIT_PRICING_PREPARE_TKOMP by changing XKOMV table. Auto determination of the manual price is happening properly.
    From Sales Overview Screen when user goes to the Conditions tab, Net Value is not getting calculated. When we navigate away to Schedule line tab and then come back to COnditions tab, Net Value is automatically getting calculated.
    AM i missing something in the coding part? As the data is getting populated automatically I guess some piece of code needs to be triggered. Can anyone shed some light into this.
    Thanks in advance,
    thunderans.

    Prabhu: After filling in XKOMV structure, I am calling FM PRICING. On doing this, the Sales Pricing is getting calculated but even then net value of order at header i.e VBAK-NETWR is not getting populated when we are in Sales Overview screen. When, I am getting into Conditions tab and coming back to Sales Overview screen, Net value is getting populated correctly. This portion of everything not getting populated at the same time is bothering me. The pricing conditon that I am  filling is a manual pricing condition.
    I put a breakpoint after FM PRICING which correctly populates XKOMV structure. How do I properly update Order Net Value in Sales Overview screen wihtout having to navigate to any other tab?
    Nicklas: I am looping at Order line within the user exit USEREXIT_PRICING_PREPARE_TKOMP and determining price. Once all line items are processed, I am using the FM PRICING for calculating Sales Prices.
    J@Y: Request to send me a bit more details into your approach.

  • Creating line item for a sales order in user exit

    Hi
    I have to create a line item through user exit "userexit_save_document_prepare" when saving the sales order.I am doing this by appending a row to the internal table XVBAP in the user exit.
    The row is getting appended to the internal table but the line item is not getting created in the sales order .I dont getting any error also.
    Can anyone tell me what could be the reason for this and is there any other means by which i can create a line item through the user exit.

    You have to set the creation flag UPDKZ to 'I'.
    to correctly use the user exit refer to OSS note 0381348 Using user exit, customer exit, VOFM in SD.
    pls reward if helpful
    Roberto

  • Supress  some fiels in sales order? user exit?

    can  somebody help me  regarding this. i want to  supress  some fields  in a standard  sales order. i dont want to  delete . i just   want  to supress  some fields  in a standard  sales  order. is there  a  user  exit  for  it? if yes   do tell  me  which  user exit is it and  how to use it?

    hi,
    To make optional / mandatory you can use in IMG - S&D-> Basic > Functions-> Log of incomplete Procedures =>  select the fields > from the tables and the system will check for them (OVA2/VUA2)
    To make a filed entry enabled or grey (non-entry allowed):
    User exits in the program MV45AFZZ-USEREXIT_FIELD_MODIFICATION
    This user exit can be used to modify the attributes of the screen  fields.
    To do this, the screen fields are allocated to so-called modification groups 1 - 4 and can be edited together during a modification in ABAP.
    If a field has no field name, it cannot be allocated to a group. The usage of the field groups (modification group 1-4) is as follows:
    Modification group 1: Automatic modification with transaction MFAW
    Modification group 2: It contains 'LOO' for step loop fields
    Modification group 3: For modifications which depend on check tables or on other fixed information
    Modification group 4: is not used
    The FORM routine is called up for every field of a screen. If you require changes to be made, you must make them in this user exit. This FORM routine is called up by the module FELDAUSWAHL.
    Actually suppressing fielding sales orders userwise is quite easy. We are doing it in our company. For this we use userexit FORM USEREXIT_FIELD_MODIFICATION in MV45AFZZ.
    Below is the sample code
    IF SCREEN-NAME = 'VBKD-ABSSC'.
    AUTHORITY-CHECK OBJECT 'ZMV45AFZZ' ID 'SCRFNAME' FIELD SCREEN-NAME.
      IF sy-subrc = 0.
        SCREEN-INPUT = 1.
      else.
        SCREEN-INPUT = 0.
      ENDIF.
    endif.
    You place the authority check object in authorization profile in the role of the users, who should have access to the field (in this case it is VBKD-ABSSC), and there assign the corresponding fields that are to be accessed via this userexit.
    pls reward points if the answer is helpful
    REgards,
    Murali

  • Creating line item in a sales order by user exit

    Hi
    I have to create a line item through user exit "userexit_save_document_prepare" when saving the sales order.I am doing this by appending a row to the internal table XVBAP in the user exit.
    The row is getting appended to the internal table but the line item is not getting created in the sales order .I dont getting any error also.
    Can anyone tell me what could be the reason for this and is there any other means by which i can create a line item through the user exit.

    You may also need to add an entry to the internal table XVBEP for the schedule lines.

  • Sales Order Create - User Exit

    Does anyone have experience using available user exits to split sales order line items before saving SO?
    After user enters a line item, we'd like to split the line item into 2 or more line items and schedule lines (VBEP).  We are achieving this using exit "USEREXIT_CHECK_VBKD".  However, we get the error "Item 000020 for schedule line 000011 is in the work area" (Message no. V1 357).
    Error occurs when VBAP-POSNR is not equal to VBEP-POSNR.
    Any suggestions?
    Thanks,
    David Guerrero

    Thank you all for your responses.
    The trick was to get table SVBEP populated with the proper values for field TABIX.  We
    achived this using MV45AFZZ user exit as follows:
    FORM USEREXIT_MOVE_FIELD_TO_VBKD.
      TABLES KNB1.
      DATA    PMTHD(10)   TYPE C.
      DATA L_SVBEP_LINES(06) TYPE N.
      CLEAR: KNB1,
             PMTHD.
    re-indexing after splitting lines...
      DESCRIBE TABLE SVBEP LINES L_SVBEP_LINES.
      IF L_SVBEP_LINES GT 0.
        loop at SVBEP WHERE TABIX NE 0.
          READ TABLE XVBEP INDEX SY-TABIX.
          IF SY-SUBRC EQ 0.
            MOVE SY-TABIX TO SVBEP-TABIX.
            MODIFY SVBEP.
          ENDIF.
        ENDLOOP.
      ENDIF.
    This corrects SVBPEP tabix entries after lines have been changed/added
    programatically, via program MV45AFZB, FORM USEREXIT_CHECK_VBKD.
    Thanks again!
    -David

  • Service Order Operation User exit

    Hi,
    I am looking for user exit to validate operation data in sevice order on entry and while saving.
    I have checked IW01 user exits but enable to find the correct one.

    > Hi,
    >
    > I am looking for user exit to validate operation data
    > in sevice order on entry and while saving.
    >
    > I have checked IW01 user exits but enable to find the
    > correct one.
    Hi,
    This is my first post. I think you can also use function EXIT_SAPLCOIH_009. This is fired on any of maintenance order/service order save event.
    Regards,
    Abhijit

  • Disable the characteristic window in sales order and user-exit to pick up

    Hi Freinds,
    I am working on 1 VC assignment in which
    1. I have to pick up the characteristic values selected in VA02 in sales order before saving the change sales order.
    2. I have to Disable the characteristic window (with characteristic name and value) appear after click on u2018item detail : configurationu2019 button in sales order (if the chracterstic say 'Approval' having the value 'Yes')
    3. I have to disable the characteristic window after selecting the one of the characteristic value to 'Yes' in VA02
    So I need to fetch this character value witnin sales order before saving the change sales order and need to restrict the user to change any other characteristic value(disable the characteristic window) .
    Please guide for any user exit at configuration side to export and import the values in sales order and disable the characteristic window to restrict the user from changing any other characteristic value for the item.
    Please do the needfull.
    Best Regards,
    Vikram Chavan

    Hi,
    Check....
    Exit Name               Description     
    LMR1M001               User exits in Logistics Invoice Verification     
    LMR1M002               Account grouping for GR/IR account maintenance     
    LMR1M003               Number assignment in Logistics Invoice Verification     
    LMR1M004               Logistics Invoice Verification: item text for follow-on docs     
    LMR1M005               Logistics Inv. Verification: Release Parked Doc. for Posting     
    LMR1M006               Logistics Invoice Verification: Process XML Invoice     
    MRMH0001               Logistics Invoice Verification: ERS procedure     
    MRMH0002               Logistics Invoice Verification: EDI inbound     
    MRMH0003               Logistics Invoice Verification: Revaluation/RAP     
    MRMN0001               Message output and creation: Logistics Invoice Verification
    Reward points if useful....
    Regards
    AK

  • Availability check run requirement in the Sales order Save user Exit.

    Hi Gurus,
    As per the requirment we are using a user exit SAVE SALE ORDER PREPARE for BOM purpose to reconfirm the confirmation qty.
    Now we need to add one more logic in the same user exit, which will run the availabilty check run for each of the line items of the BOM and consider latest confirmation qty from it. So my concern is it possible that we can call the availabilty check run event with in the user exit SAVE SALE ORDER PREPARE or this not advisable?
    Please let me know..
      Regards,
      Babs

    HI Venkat,
    Thanks for your reply.Yes you are right availability check runs automatically at sub item level.
    But please note the customer requirment iteself is is little different from std BOM configuration.
    Currently the availabilty check is activated both at header and sub item level. They are maintaining the stock for header and sub item level.Also the these sub items are some time being sold as invidual materials. hence there exist a mismatch in the stock value between header and sub items.
    when a sales order is created both header and sub items will have confirmation with different value between each and the same mismatched values are being passed in to delivery. But the deliveries can not be processed for PGI because of the mismatched confirmation qty between header and item level.
    I guess now you the rrequirment.
    So we are using the SAVE SALE ORDER exit which will re check the confirmed qty between header and item and takes lowest confirmed qty and change the confirmed quantities from all the line items to lowest one, so that confirmation qty among all the line items are same. This is the first logic we are planning.
    Further there is one more additional process BOP need to be run for this header and sub items, which will change the confirmed qty based on the latest stock for individual line item. even in this case also the user exit SAVE Sale order is being called but we need to run the availability check run additionally because of which our requirment will be taken care.
    Regards,
    Babs

  • EDI order change - user exit

    Hi group
      Quick question...while doing a PO change ( IDOC_INPUT_ORDCHG)....sales order line items are to be deleted....I know that this needs to be done in a user exit...i am trying to nail down to the right user exit......
    I found only one user exit ( customer function 002 ) dealing with BDCDATA...but the problem is this one is called multiple times in the program...and I want to run this code only once....have you guys encountered similar situation / have any clue....Plz let me know

    Hi,
    I did not get your question. What is the relationship between changing PO data and deleting sales order line item.
    I do not recommend changing sales order line in some userexit while processing PO idoc. Eventhough you find an userexit to do this, when sales order line item is deleted and commit happens in not only commits the sales order data but also other outstanding updates. This might cause database inconsistency.
    Please clarify your exact requirement.
    Regards,
    RS

  • Production order create: User exit

    Dear All ,
    I want the user exit name while :in create mode of Production order while saving the production order i want to check the production order Qty and other data entered by users ?
    Pl guide with the User Exit name ?
    Regards ,

    Dear,
    For your requirement, you need to use the User Exit: PPCO0007
    PPCO0001 enhancement when saving the order can be used to get the your requirement
    BADI workorder_update with methode at_save might be also helpfulll for you
    Regards,
    R.Brahmankar

  • To Populate the profit center field in the sales order by user Exit.

    Hi All,
    Please let me know :
    How the user exit is used to populate the Profit center field in the Sales order?
    Please gurus answer  as quickly as possible as I require this urgently.

    If you want to overwrite the profit center in sale order (determined from the materail master) with a different profit center based some other criterion you can use profit center substitution rules. Check the wiki:
    [Profit Center Substitution in Sales Orders|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/erplo/profitCenterSubstitutioninSales+Orders]
    Regards,
    GSL.

  • Maintenance Order - Reservation User Exit

    Dear,
    If there is any change in the order for adding new material / delete material / any change in quantity.
    We need to send an email to the concerned person if there is any change in component tab. What will be the user exit for the same to be achieved?
    Senthil

    Hi,
    You can use user exit - CNEX0026.
    Regards,
    Mihir Popat

  • Process order release - user exit ?

    Hi experts,
    I need to build an interface where all the released (and all the updated)process orders need to be transfered from SAP to a warehouse system thru XI.
    I have identified an IDoc(LOIPRO01) which fullfill my needs but didn't find yet where to generate it.
    I'm searching for an user-exit triggered at the release of a process order.
    I have found this one:
    PPCO0007(Exit when saving production order) but the documentation says "a lot of data in the order header is only set once the customer exit has been processed"
    Any suggestions on how I can do this is greatly appreciated.

    Hi Fabien,
    Welcome to SDN.
    You can execute t/code <b>POIT</b> or standard SAP program <b>RCCLTRAN</b> to generate IDoc LOIPRO01.
    Prior to execute, please ensure you have done the configuration for ALE and IDoc.
    Hope this will help and let me know if you need further assistant.
    Regards,
    Ferry Lianto
    Please reward point if helpful.

  • Order Confirmation user exit for storage location

    hi all
    while confirming order, no one should select any other storage location other than fix : 1003,
    user selects 1001, 1002, 1003.
    actual posting location is 1003..
    Can i control this activity with the help of user exit ? if yes please suggest.

    Hi,
    You can maintain Production Storage location in BOM as well as you can maintain also in Material Master--> MRP-2 View--> Production Storage location.
    So system will by default take the respective storage location and user need not select each time manually.
    For this purpose, you need not implement any exit.
    Revert in case any doubt.
    Hope this solves your problem.
    Regards,
    Tejas

Maybe you are looking for

  • Linked image question

    I create a monthly newsletter using InDesign CS3 (5.0.4) on a Dell Inspiron 6000 with a 1.5 GHz Pentium M processor, 2 GB of RAM and Win XP/SP3. I collect information from various sources, some of which are Micorsoft Word documents with graphics, and

  • Oracle UCM 11G missing Web Form Editor

    Hello All, Oracle 10G UCM provided a WebForm Editor. After installation of newer version Oracle UCM 11G we found the feature is missing. Is there a substitute provided by Oracle in 11G version for the same? We need to provide functionality to end use

  • Pro sound advice

    Hi there, Ive been using Logic for a short time now ad I just have a couple questions about the best way to input/output the sound, I know not specifically Logic related but hopefully the amount of Pro users in the forum should be able to help! I use

  • IBook G3 refuses to launch applications

    Hello! I recently obtained a iBook G3 Dual USB (500 MHz/ 64 MB RAM/ 10 GB HD) off ebay. It just happened to be a public school board surplus computer from some school district in North Carolina. Anyway, besides the point. I am having a issue. The mac

  • Installation Guide needed for Oracle RAC 10G R2 Linux x86-64

    Hello All, Can someone point me to the Oracle documentation on installing Oracle RAC 10G R2 (10.2.1.0) for Linux x86-64? Seem unable to find the required doc. I greatly appreciate your help! Thanks!