Production order save: user-exit EXIT_SAPLCOZV_001

Hi
I have not done user-exits.
How do I call program RCCLORD which creates idocs. I've created include  zxco1u06 . How will i get the Production order number. Should i get it from memory?

Hi
When i debug the saving of an production order, it calls program RCCLORD. RCCLORD use a logical database IOC, how do i populate the data to the selection screen of the LDB?
tables: aufk.                                                          
ranges r_order for aufk-aufnr.                                                                               
r_order-low = HEADER_IMP-AUFNR.                                        
r_order-sign = 'I'.                                                    
r_order-option = 'EQ'.                                                 
append r_order.                                                        
SUBMIT RCCLORD  WITH OPT_SYS  EQ 'SAPBC'  "Logical system                      
                 WITH MESTYP   EQ 'LOIPRO' "MESTYP                      
                 with AUFNR    eq r_order AND RETURN. 
Message was edited by: Giovanni Baumann

Similar Messages

  • Production Order BADi / user exit

    Please can anyone suggest a BADi / user exit that can be used to pop up box after the save button is clicked in production order create (CO01)
    Thanks
    Edited by: MLockett on Oct 9, 2009 3:31 PM

    Hi,
    you can use the below exit...
    PPCO0007  Exit when saving production order
    Prabhudas

  • 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

  • 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

  • How to trigger Availability check in Sales Order 'save' user exit.

    I have requirements which dictate that I change item categories of most of the line items in a user exit. If I do that the line items no longer confirm. I know that the availability check happens in 'move_Field_to_vbap' user exit. Is there any way I can re-trigger it on save. These orders will be coming through a bapi. Thanks in advance.

    Hi!
    Search the way (via menu) in VA01 to trigger the availability check manually. Then have a look, with routines are called.
    Then call this (these) routines in the exit. If you see something like 'perform okcode_...', then this should work. Be careful not to trigger recursive loops by this way. Maybe  the prepare_save-exit is a better place to do this.
    Regards,
    Christian

  • Production Order Confirmation- User Exit

    Hi guys,
    I am working on File to IDOC scenario interface in SAP XI/PI.
    Here before posting a confirmation IDOC into SAP.. validations or data checks required for Order Number ,Order status, size grid, std text key and work centre.
    and this can be achieved using some USEREXIT..I have found the USEREXIT as PPCO0001 with the help of an ABAPer
    Could someone help me whether it is the right one if not what could be the other one and the steps involved in implementing it
    Thanks
    Sahil

    Hi Sahil,
    You should be using PPCO0007  Exit when saving production order.
    Check with your ABAPer once again.
    Regards
    Abhii
    Edited by: Abhii on Sep 14, 2010 11:28 AM

  • 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.

  • How to  read header texts in the on save user exit of VA01

    Hi Experts,
    I have a requirement to read the header texts in the on save user exit.
    I have to check whether departmental code in header text is not initial or not.
    Can any one please pour in some points of how it can be done......
    Thanks in Advance.
    Prem

    Hi
    U can use fm READ_TEXT:
    DATA: THEAD LIKE THEAD,
          TLINES LIKE STANDARD TABLE OF TLINE WITH HEADER LINE.
    THEAD-TDID     = <text id>.
    THEAD-TDSPRAD  = <language>.
    THEAD-TDOBJECT = 'VBBK'.
    THEAD-TDNAME   = VBAK-VBELN.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
        ID                            = THEAD-TDID
        LANGUAGE                      = THEAD-TDSPRAD
        NAME                          = THEAD-TDNAME
        OBJECT                        = THEAD-TDOBJECT
      TABLES
        LINES                         = TLINES
    EXCEPTIONS
       ID                            = 1
       LANGUAGE                      = 2
       NAME                          = 3
       NOT_FOUND                     = 4
       OBJECT                        = 5
       REFERENCE_CHECK               = 6
       WRONG_ACCESS_TO_ARCHIVE       = 7
       OTHERS                        = 8
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    U can use it in all situations ( inserting and updating) because that fm returns the buffered text.
    Max

  • Query on Billig Save User-exit

    Hello Folks,
    This question is related to SD (Billing Area).
    We have a requirment, In the Billing Save User-exit 'RV60AFZZ', we need check for the VAT Reg No of the Sales Org in a Z-table, if its not configured in it then we need to stop the Billing creation.
    i.e, when sy-subrc ne 0, stop the Billing generation.
    We tried with the commands 'check' and 'Exit', these did not work. The control exits from RV60AFZZ but the billing is still created. Then we tried command 'STOP'. This works good in online mode (VF01), however in batch mode there is an issue. The billing for the particular document (when sy-subrc ne 0) is stopped, however the job skips all the docs for billing generation. But the Job does not abort.
    I know that the copy control routines are the perfect choices for implementing this kind of logic. However due to the other requirements we had to put the logic in the Billing save User-exit,
    Can someone help me here.
    I need to stop the billing generation( in batch mode )for a particular doc based a check (if sy-subrc ne 0) and the batch job should invoice the rest of the docs which it picks from the Billing due list.
    Regards,
    Mohan Krishna

    Hi
    U can use fm READ_TEXT:
    DATA: THEAD LIKE THEAD,
          TLINES LIKE STANDARD TABLE OF TLINE WITH HEADER LINE.
    THEAD-TDID     = <text id>.
    THEAD-TDSPRAD  = <language>.
    THEAD-TDOBJECT = 'VBBK'.
    THEAD-TDNAME   = VBAK-VBELN.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
        ID                            = THEAD-TDID
        LANGUAGE                      = THEAD-TDSPRAD
        NAME                          = THEAD-TDNAME
        OBJECT                        = THEAD-TDOBJECT
      TABLES
        LINES                         = TLINES
    EXCEPTIONS
       ID                            = 1
       LANGUAGE                      = 2
       NAME                          = 3
       NOT_FOUND                     = 4
       OBJECT                        = 5
       REFERENCE_CHECK               = 6
       WRONG_ACCESS_TO_ARCHIVE       = 7
       OTHERS                        = 8
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    U can use it in all situations ( inserting and updating) because that fm returns the buffered text.
    Max

  • Change not done in the user fields of operation for production order save

    Hi Experts
    I need to change the user fields of the operation like (SLWID and USR00 )for a production order at the time of save.
    So am using the exit PPCO0001 and using the OPERATION_TABLE internal table in the exit to chang the details.
    I have done coding in the exit to change SLWID and USR00 in OPERATION_TABLE internal table, but its not updated in the database and the screen also. I dont understand why.
    Please let me know, why the update are not happening.
    Thanks in advance.
    Regards
    Rajaram

    Why Update is not happening in PPCO0001.
    Please let me know your views.
    Thanks in advance.

  • 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

  • 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

  • COR2 -Rounding Transfer order  Quantities -user exit

    Hi,
    I have a following requirement.
    When user changes order in COR2 and releases .Materials tab will be  having quantities with 3 decimals but my user wants to round it up to a whole number in the transfer order which gets created after saving the transaction.
    I need to see the changes when I run tcode LT22
    I know we have userexits for COR1 but let me know if
    PPCO0007            Exit when saving production order is the coreect one??
    because when i kept a break-point it is not stopping.
    regards
    Praveen
    Message was edited by:
            PRAVEEN s

    Hi,
    I have a following requirement.
    When user changes order in COR2 and releases .Materials tab will be having quantities with 3 decimals but my user wants to round it up to a whole number in the transfer order which gets created after saving the transaction.
    I need to see the changes when I run tcode LT22
    I know we have userexits for COR1 but let me know if
    PPCO0007 Exit when saving production order is the coreect one??
    because when i kept a break-point it is not stopping.
    Praveen Im having the same issue . did you find any solution for this.
    Gowri

  • 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

Maybe you are looking for

  • Apache mod_rewrite, htaccess and virtual host

    Does not appear that the htaccess file is doing anything at all; I tested with a 301 redirect and even put some random nonsense in it in hopes to provoke a server error and nothing. httpd.conf : http://pastebin.com/36qFCg5q httpd-vhosts.conf <Virtual

  • Blue screen on c7280 all in one reads b851fe84. lights flicker on and off. will not turn off.

    HP Photosmart C7280 All-In-One printer.  Operating system is Windows XP.  This has happened sporadically over several months.  A few weeks ago, I inserted new ink cartridges and that seemed to stop the problem.  Now, it has returned.  The on/off butt

  • Accounts Payable Question

    Hi everyone, I have a problem with the following sql: I am getting duplicate rows. Please let me know if any other join codition is missing. select AP_INVOICE_DISTRIBUTIONS_ALL.INVOICE_ID      ,AP_INVOICE_DISTRIBUTIONS_ALL.DISTRIBUTION_LINE_NUMBER   

  • LOV works fine when run from JDEV

    Hi OAF Gurus, I have an issue with one of the LOV population. It is an external LOV and I have created it as a seperate region and it works fine when I run from the Jdeveloper . When I deploy it in the server,it throwing me an error with a OAF except

  • Outlook 2010 send/receive problems

    when trying to send/receive, receive error message "not implemented"