Purchase order output determination thru User exit

Hi,
We are trying to find a way to determine the output for PO while creation (me21n) or modification (me22n).
We do not want to maintain output condition records for each fax/print/email etc..cases.
Can we do below thru a user exit or any other method ?
While creating PO, an OA partner will be chosen, so instead of maintaining the output condition records,
- user exit can access to OA's vendor master record and read Standard Comm.Method in Address section.
- according to comm.method, the PO message should be determined..
i.e: if comm.method is Fax, then message should be sent to OA thru Fax.
can this be done thru an exit ?
Thanks and Regards,
Ocal

Hi Stefan,
The steps are as follows:
Output of Purchase Order
1. Condition Table
SPRO > Material Management> Purchasing -> Message -> Output Control->Condition Tables->Define Condition Table for Purchase Order
Select: 
Purchasing Doc. Type,
Purch. Organization,
Vendor
2. Access Sequences
SPRO -> Material Management-> Purchasing -> Message -> Output Control->Access Sequences->Define Condition Table for Purchase Order
3. Message Type
SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Types->Define Message Type for Purchase Order
*4. Message Determination Schemas*
4.1. Message Determination Schemas
SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Schema->Define Message Schema for Purchase Order-> Maintain Message Determination Schema
4.2. Assign Schema to Purchase Order
SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Schema->Define Message Schema for Purchase Order-> Assign Schema to Purchase Order
5. Partner Roles per Message Type
SPRO -> Material Management-> Purchasing -> Message -> Output Control-> Partner Roles per Message Type ->Define Partner Role for Purchase Order
6. Condition Record
Navigation Path: SAP Menu-> Logistics -> Material Management -> Purchasing-> Master data->Messages-> Purchase Order-> MN04-> Create
Now you create PO (ME21N) and save it. Go to ME22N and print the PO by giving output type.
Reward me if it helpful
ASHOK

Similar Messages

  • Change MOT in purchase order using CIF Inbound user exit

    Hello APO Experts,
    Objective is to change start date of purchase order ( date at source location) in APO based on some date in R3.
    Planning to bring R3 date using CIF Outboud user exit( CIFPUR01)  in R3 and then further requirement is to a) calculate lead time in inbound user exit ( APOCF006) of purchase order in APO   b) compare it with lead time of all available Means of Transport in that particular TLane  and select  one MOT say XX which matches that lead time c) Next part is to change existing MOT in the Purchase order and replace it with the new XX MOT.
    For part c....I am wondering how can we change existing MOT in purchase order and replace it with a new one.Can it be achieved by the user exit APOCF006 in APO or something else is required.
    Will appreciate your quick reply on this issue.
    Thanks
    Best Regards

    Hi Nilesh
    We have a similar requirement. I know its way long for you to remember but i would appreciate if you could share what did you do to achieve this.  
    Thanks
    Abhishek Rai

  • Purchase order Output Determination

    i need to configure a seperate outpur type for one of the document type in Purchase order,
    eg ZRY
    If i create  PO with this Doc type i need a separate output type
    For remaining Doc type there will be different doc types
    Here my client are using some format same format i need to design for this ZRY Doc type
    Pls guide me with the steps to configure the output type.....
    how to design the same format and how to link the format with this Doc type...
    Edited by: Csaba Szommer on May 8, 2011 4:53 PM

    Hi Stefan,
    The steps are as follows:
    Output of Purchase Order
    1. Condition Table
    SPRO > Material Management> Purchasing -> Message -> Output Control->Condition Tables->Define Condition Table for Purchase Order
    Select: 
    Purchasing Doc. Type,
    Purch. Organization,
    Vendor
    2. Access Sequences
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Access Sequences->Define Condition Table for Purchase Order
    3. Message Type
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Types->Define Message Type for Purchase Order
    *4. Message Determination Schemas*
    4.1. Message Determination Schemas
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Schema->Define Message Schema for Purchase Order-> Maintain Message Determination Schema
    4.2. Assign Schema to Purchase Order
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Schema->Define Message Schema for Purchase Order-> Assign Schema to Purchase Order
    5. Partner Roles per Message Type
    SPRO -> Material Management-> Purchasing -> Message -> Output Control-> Partner Roles per Message Type ->Define Partner Role for Purchase Order
    6. Condition Record
    Navigation Path: SAP Menu-> Logistics -> Material Management -> Purchasing-> Master data->Messages-> Purchase Order-> MN04-> Create
    Now you create PO (ME21N) and save it. Go to ME22N and print the PO by giving output type.
    Reward me if it helpful
    ASHOK

  • Stop Purchase Order creation via a user exit...

    Hi all,
    I have a requirement to display an error and hold the PO creation when a material in PO doesn't have a planned price. I used the enhancement MM06E005 and EXIT_SAPMM06E_012 within that. I checked the material planned price and passed an error message depending on the result. But me21n gives user a option of holding data instead of stopping on error message. Is there anyway of keeping users from saving POs under this condition?
    Thanks
    Naveen

    Naveen,
    I think configuring RELEASE STRATEGIES is the solution for this. That way you can even control who can release the PR's and assign the authorizations only to some users.
    The problem with the user exit, is that there is no clear cut condition when you want to create the PO and when you don't.
    Regards,
    Ravi
    Message was edited by: Ravikumar Allampallam

  • Purchase Order Output Failing

    When a user creates a purchase order, the output (usually set to print and fax) is failing. On the Message window, the output method has a status of "incorrectly processed" and upon attempting to display a print preview of the document an error message is received that "Archive object has not been assigned."
    Manually outputting the purchase order thru ME9F works fine. However, the users needs this to be automatically done as it was before the error started occurring.
    He is the only user experiencing this. What are possible connections between output determination and user or purchasing group? And how can I go about solving this?
    Thanks - points will be rewarded.

    I am not sure what the O/p determination criteria is for PO output. However it seems like the User/ Pgroup is used in condition determination which has either been changed or deleted.
    Could you verify through MN05 if the condition tables are intact

  • Sales Order Output - determined by Sales Order Type, Created By

    I want have my order output determined by sales order type
    (vbak-auart) and created by (vbak-ernam).
    I have created a condition table 501, access seqeunce Z001.
    In v/48, in accesses for Z001, I created
    AcNo: 10
    Tab: 501
    Requirement: [empty]
    Exclusive: unchecked
    in fields, I can't find ERNAM in structure KOMKBV1(header), but I find one in KOMPBV1 (item).So I have assigned it to ERNAM.
    besides, I have created the corresponding records in VV11
    I expect to have:
    Output Z001 will be created for sales order type OR if created by user XXX
    However, no output is generated. When I go out detemination analysis, I found that in the output determination procedure, it did go into output type Z001, but, since no value is found for "created by", i got message "Access not made (initialized field").
    I suspect that no value stored in KOMPBV1-ERNAM. Do you know how I can get it done?
    Points will be awarded for useful information. Thanks in advance.

    Hi
    You have to include this field as a Zfield in the structures KOMKBV1, KOMPBV1 and KOMB.
    You have to include the field as Zfield in these structures.
    Once this is done, you should also be able to update this field in the structures.(As on now, you have only created a field, but you have not mentioned how the field has to be updated.
    In order to update the logic, you have to do a small code in one of the user exits for outputs.
    In the user exit, you have to write a code like this
    MOVE VBAK-ERNAM = KOMKBV1-ZERNAM(this is the zfield you have created)
    Now create the condition table and do the rest.
    Your output should work fine. The user exit I was saying is the subroutine USEREXIT_KOMKBV3_FILL in the include RV61B902 in the user exit RVCOMFZZ. If you can give this info to the technical guy, he should be able to find out the same for saels order output also.
    The user exit RVCOMFZZ also has the subroutine USEREXIT_KOMKBV1_FILL    which you can verywell use for your requirement. This will solve your problem
    Hope this helps.
    If you have any problems in this, you can again put the problems in this thread. I will try to solve.
    Reward if this helps you

  • Purchase Order output to be blocked in ECC when the PO is technically Incom

    Hi All,
    First of all I would like to say that, I have searched the entire forum for this issue & as i could not find any thread relating to this, I am posting.
    We have implemented SAP GTS & whenever a purchase order is created in ECC system and due to Business partner missing or Legal Unit missing in GTS, the document is created as Technically incomplete in GTS.  Inspite of technically incomplete, the ECC users are able to print out the PO.  We have implemented a SAP note for blocking the purchase order output when the customs Import document is Blocked in SAP GTS.
    Could anyone let me know if we have any OSS note for blocking Technically incomplete purchase order's or is there any workaround to prevent the output from being printed.
    Regards
    Aravind G

    Hi,
    We have a requirement to block PO output as well so we implemented Note 900555. But how does it work? We do not see anything anywhere on the PO that would prevent output. We have POs that are blocked in GTS and nothing is any different on the PO. The note doesn't really explain how it works either. We assumed that the Output logs would also show a message of some sort.
    In addition, when this note references blocking "output" is it only meant for blocking print? Or can it block electronic transmission as well?
    If we can't get this note to work, we are thinking of adding GTS to the PO Release Strategy, in order to block transmission of anything to the supplier.
    Thanks,
    Jessica

  • Purchase order output

    Hi
    I have created a new purchase order output. When I go to messages in a Purchase order, I do not see any output. The output/message screen is blank.
    When I go to Determin. Analysis, I see the Output has been found. See picture below.
    http://i35.tinypic.com/169kwwn.jpg
    Sincerely,
    Ketan

    Hi Ketan,
    Go to MN04 and select the condition type NEU if you are using the standard condition type or select the customized condition type and select the appropriate combination to maintain the output master record.
    if you want to check whether you Purchase Order output has been assigned to your output or not
    a) execute t-code NACE
    b) Select EF -Purchase order
    c) click on output types
    d) here select NEU if u are using NEU or select the condition type which you have customized
    e) click on the processing routines to see if the PDF/smartform is attached to the print out and fax.
    hope this helps

  • Different interfaces for purchase order output from MM system

    Dear Guru's,
    We are configuring the business scenarios of service procurement classic and Plan driven procurement with supplier enablement in the MM-SUS environment for our SRM7.01/ECC6 ehp 5 combination.
    These two scenarios are using different interfaces for purchase order output.
    The service procurement classic is using the proxy interface PurchaseOrderERPRequest_
    Out_V1 for purchase order output from ERP.
    However, the plan driven procurement uses the interface ORDERS.ORDERS02 for idoc message for purchase order output from ERP.
    Why are there two different interfaces for the same document output in two different business scenario? How the system will determine which interface needs to be used in the runtime for the purchase order output?
    Any thoughts will be highly appreciated.
    Thanks and regards,
    Ranjan

    Hi Ranjan,
    Please add the value 'CL' in the table SWF_CATIDS
    Then it will work.
    With Regards,
    Malay

  • Purchase requisition release procedure through User-Exit

    Hi Workflow Guru,
    I have a requirement to configure purchase requisition workflow . the workflow should trigger through release strategy.
    The approver should determine through user-exit and the approver should determine based on value and quantity and that can be define in user-exit. as per my knowledge the value should mantain in SPRO-Release procedure. Please clarify me is it possible through user-exit. I am worked on user-exit for release procedure based on purchasing group.
    Thanks in advance.
    Regards,
    Ranjan Tiwari

    Hi,
    There is BADI ME_REQ_POSTED 
    in method POSTED  you can write your code to trigger the workflow and get the information related to release strategy and
    Purchase requisation  .
    for more than one PR use below logic .
    LOOP at im_eban into gwa_im_eban .
        concatenate gwa_im_eban-banfn gwa_im_eban-bnfpo into gwa_objkey .
      add data into container -----------------
          gwa_event_container-element = 'PurchaseRequisition'.
        gwa_event_container-value = gwa_im_eban-banfn.
        append gwa_event_container to gi_event_container.
        clear: gwa_event_container.
        gwa_event_container-element = 'ItemOfRequisition'.
        gwa_event_container-value = gwa_im_eban-bnfpo.
        append gwa_event_container to gi_event_container.
    get the other details and create event to start workflow .
    select single * from eban into lwa_eban where banfn = gwa_im_eban-banfn
                                                  and bnfpo = gwa_im_eban-bnfpo .
            if sy-subrc <> 0 .
          call function 'SWE_EVENT_CREATE'
            exporting
              objtype           = 'BUS2009'
              objkey            = gwa_objkey
              event             = 'zcreated'
            tables
              event_container   = gi_event_container
            exceptions
              objtype_not_found = 1
              others            = 2.
    ENDLOOP .
    Hope this will resolve your issue.
    Thanks and Regards,
    Deepanker Dwivedi

  • How to define a purchase order output print view as my element

    Dear all :
             I have created a purchase order and want to print,but i found the details of print doc is not my requirements.So,I want to change it .I don't know where the path is .THKS
                                                  Brian

    Hello Jianfeng,
    The purchase order layout can be changed using the SAP script/Form. You need to identify what you need to put on the purchase order output also you can include the client's logo and other standard and constant details (tax number / registration number etc).
    You have to give this requirement to the technical person (ABAPer). (S)he will make the changes in the script program and you need to assign this form to the PO printing program.
    In standard SAP version, Form MENDRUK is available for Purchase order printing.
    Once form is developed by the developer, you need to assign this form in customization,
    SPRO--> Mat Managmenet --> Purchasing --> Messages --> Forms Layouts for messages --> Assign form and output program for purchase order.
    Hope this helps.
    Regards
    Arif Mansuri
    Reward the points if answer is helpful.

  • How to view the purchase order output

    Hi all,
    how to view the purchase order output in the transaction me23n?
    How to obtain the purchase order output form?
    Please help..

    HI,
    goto NACE tcode then select the purchase order type and go to output types u cna use standard one NEU and provide the sapcript name and form name default will be there with MEDRUCK and print program.
    then in ME23n click on messages there create ur message type NEU and save it
    then print the purchase order...
    hope u get solved with this
    Regards
    Syed A

  • BAPI_GOODSMVT_CREATE giving error  purchase order is locked by user

    I am calling multiple times BAPI_GOODSMVT_CREATE for same Purchase order to post goods receipt.
    first goods receipt created successfully but second one has given the error the Purchase order is lockecd by USER 'XXXX' .
    i am calling 'BAPI_TRANSACTION_COMMIT after each BAPI BAPI_GOODSMVT_CREATE.
    i tried with passing parameter WAIT = 'X' in 'BAPI_TRANSACTION_COMMIT. then also getting same error message.
    please any one tell me the solution

    Hi
    1. Check all the call is handled the release function(JCO.releaseClient(client)) for each call.
    2. And check in finally
    finally {
         try {
         if (client != null) {
           JCO.removeClientPool(SID);
           JCO.releaseClient(client);
         if(client.isAlive()){
              client.disconnect();
           JCO.releaseClient(client);                    }
         } catch (JCO.Exception ex) { }
    Kind Regards
    Mukesh

  • Number of messages for Purchase Order output

    Hi All!
    I have to set the number of messages for the Purchase Order output at 2 (NAST-ANZAL). For a certain output type, in the Communication method the default value for Number of messages (original + copies) has to be 2. There is a transaction which allows me to do that but I don't remember it.
    Yours answers and your time are appreciate.
    Best regards.
    Florina C.

    Hi
    The transaction is MN05 or
    Logistics->Materials Management->Purchasing->Master Data->Messages->Purchase Order
    Max

  • Purchase order price determination

    Hi Gurus.
    Please help on below Inquiries
    In Purchase order, how is the net price determined?
    Is it from the agreement? the info record? RFQ? Is there a sequence for this?
    If there is, where is this configured?
    Thanks!

    Hi,
    Purchase order price determination takes place with help of  Access Sequences and Schema Group of Vendor.
    You can go for pricing manually or automatic. If you need pricing automatic you have to go for use of Access Sequences and Schema Group of Vendor. You can customize your pricing procedure according to your requirement such as like Domestic, Import and Stock transport.
    For the above individually you have to configure Pricing Procedure and the following steps are:
    SPRO->MM->Purchasing->Conditions->Define Price determination process
    1. Define Condition Table:
    2.Define Access Sequence,
    3.Define Condition Type,
    4.Define Calculating Schema,
    5.Assign Calculation Schema, Access Sequence and Condition Type,
    6.Define Schema Group Of Vendor,
    7. Define Schema Group Of Purchasing Organization,
    8.Assign Schema Group Of Vendor to Purchasing Organization,
    9.Assignment of Schema Group Of Vendor ,Schema Group Purchasing Organization and Calculation Schema.
    10. Assign Vendor to Schema Group of Vendor (XK02)
    11.Maintain Condition record (MEK1)
    after above steps, you can go for create PO in ME21N.
    In the case of Import PO, you have to activate Import PO.
    SPRO->Materials Management -> Purchasing -> Foreign Trade/Customs ->Control Foreign Trade Data in MM and SD Documents ->>>>>>
    Regards,
    Biju K

Maybe you are looking for

  • Can't change my credit card information

    My credit card expired. I tried to changed it with my iphone by following all the steps. Once I click the "done" button, it tells me that I need help and that I should go on this website: www.apple.com/support/itunes/ww/. This website does not help m

  • Problems with language in ARFC2

    Hi, after migrating  JCO Connections to ARFC2 I have a problem with the messages and textes from the RFC Functions. Before ARFC2 the messages where in the correct language of the logged in user. But now in ARFC2 there are only the german messages. Ar

  • HT4436 does iCloud auto transfer pics from iPhone to macbookpro?

    I have IPhone and MacBook Pro.  I set up ICloud awhile back with assistance from Apple Genius.  All was well.  All pics taken on my IPhone was automatically transferring to my MacBook Pro...now they do not.  Please advise.

  • PackedInteger encoding does not preserve order - but it could

    Currently, when viewed under the default unsigned lexical ordering, "packed" integers (and longs) do not sort numerically. This is because for values requiring two or more bytes, the "value" bytes are stored little endian. For example: <tt> 65910 ->

  • Data Recovery tool

    what is a good free data frecovery tool for mac? If none, what is a good cheep one avaliable on the Mac App Store?