How to determine output based on the content of purchase order

Hi Gurus,
I've a typical requirement at my present project. With vendor X we have punchout catalogs. while creation of shopping cart, we are not allowing the user to mix catalog items and non catalog items into the same shopping cart. Once the shopping cart all shopping carts are automatically coverted into PO.
Now the challenge we are facing is, if the PO is created based on items from catalog, we want to send such PO via XML interface to the vendor. If the PO is created based of items which are free-form, we want to send such PO via Smartform email attachment.
As this condition can only be determined at runtime, I'm finding a challenge to configure this. In both PO cases, vendor is same but the content of the PO is different. One contains all items that are catalog based and other contains items which are non catalog.
Can someone help me find solution for this issue.
Regards,
Sam K

Change Forms for Document Output
You can use the Business Add-In BBP_OUTPUT_CHANGE_SF to override the Smart Forms that are defined in the activity Define Actions for Document Output.
This BAdI serves as an alternative to the IMG activity Condition-Dependent Document Output.
Note that no Smart Forms are used for output via XML.
Standard settings
The following parameters are available in the method CHANGE_FORMS. Depending on the input parameters, you can define other Smart Forms to output the document type.
Importing
IV_GUID
Globally Unique Identifier of the document.
IV_MEDIUM
Output medium found for this document according to Define Actions for Document Output (print: PRN, fax: FAX, e-mail: MAI, XML: MET).
IS_PARTNER
Business partner to whom the document is sent.
IV_OBJECT_TYPE
Business transaction type.
Changing
CV_SMARTFORM
Smart Form used to output the document.
E-mail output
Smart Form with which the document is added to the e-mail in the form of a PDF attachment.
Note:
Note that the BAdI with this parameter overrides the parameter form name (technical name of the Smart Form BBP_PO for example) irrespective of the defined determination technology (SRM: Purchase Order Output Determination, for example).
CV_SMARTFORM_MAIL
Smart Form used to define content and layout of the e-mail text in the case of e-mail output.
CV_SUBJECT_MAIL
Smart Form that determines the text in the (short description of the e-mail content).
As an alternative to this BAdI, you can control document output via determination technology.
For more information, see Condition-Dependent Document Output.
EXPLORE THIS badi

Similar Messages

  • How to prevent Output to be generated for Return Purchase Order.

    Hi All,
               while creating a return Purchase Order the output is getting triggered. Now for Return Purchase Order the business does not want the output to be generated.
    So is there a way by which we can have the automatic output generated for normal Purcahse Order but not for Return Purchase Order.
    The system uses standard Output Type NEU for message. And condition record maintained for generating output (print/email) while saving.
    Is there a way by which this issue can be addressed.  if so how ?
    Thanks.

    Dear all ,
    a material goes storage location to client  through pr ,in client site i get faulty material
    i want to retorn that to my plant or storage location
    that basis how to make retorn po and what are the procedure ?
    what is movement type ?
    Regards
    shiv

  • Duplicate checking based on the content of the incoming file

    Hi,
    We have a requirement where in we have to check whether a file has been duplicated or not based on the contents of an incoming file.The threads which I have seen in SDN deal with the duplicate checking based on the filename of the incoming file.
    The incoming file has the following structure :
    Recordset                                     Occurance-1
           |....... Idoc                              Occurance 1...unbounded
                       |...... segment             Occurance 1
    We are required to make a check based on certain fields which occur in the segment.There are about 4 fields which we will have to take from the incoming file and carry out the check.These 4 fields exist in different segments.We will have to update a ztable with these 4 fields and then perform an rfc lookup to check for the contents of the incoming files with this table,and reject or process the file based on whether the entries exist in the table or not.
    Please let me know if there is any way this can be achieved.
    Appreciate if anyone could help me on this.
    Thanks and Regards,
    Induja

    SAP PI 7.1 Mapping Enhancements Series: Graphical Support for JDBC and RFC Lookups
    Use this crazy piece for any RFC Mapping Lookups!
    The specified item was not found.
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/5877---- [original link is broken] [original link is broken] [original link is broken]
    Imp
    SAP NetWeaver Process Integration 7.1: Mapping Enhancements Blog Series
    SAP PI 7.1 Mapping Enhancements Series: Mapping Enhancements Demo
    /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    How to check JDBC SQL Query Syntax and verify the query results inside a User Defined Function of the  Lookup API
    The specified item was not found.
    The specified item was not found.
    Making CSV File Lookup Possible In SAP XI !!!
    SAP PI 7.1 Mapping Enhancements Series: Parameterized Message Mappings
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1888-----Imp [original link is broken] [original link is broken] [original link is broken]
    Triggering XI Alerts from a User Defined Function
    Aspirant to learn SAP XI...You won the Jackpot if you read this!-Part II

  • Searching based on the content of an uploaded document

    Hi,
    Is it possible to search based on the content of the document I have uploaded. The system used is ECC 5.0.
    Eg : I have uploaded resumes of employees and I have search based on their skills. Is it possible to search based on the skill which is mentioned in the resumes and provide the output.
    Thanks,
    Sarath.C

    I can't do that without knowing the structure of your document, it all depends on wether the data you need is in a fixed position in a fixed line or it's in a variable position and the correct line or position needs to be found before using it.

  • Can we control the PDF file name that is generated by BI Publisher based on the content in the input PDF

    can we control the PDF file name that is generated by BI Publisher based on the content in the input PDF?

    No, there isn't. The way you're using the file is not recommended. You
    should use a review tracker to avoid getting in the way of one another.

  • Retrive Records based on the content in a Clob Feild

    Retrive Records based on the content in a Clob Feild
    I have a Table NoteFile which contains a Clob Feild NoteFileContent
    and is refrenced by PK DocID
    i need to Match DocID with other Tables Document and folderdocument
    My Query is as Below
    SELECT Doc.Pap_Doc_ID, Doc.Pap_Doc_Name , NF.NoteFileContent
    From NoteFile NF , Document Doc, folderdocument FD
    Where Doc.Pap_Doc_ID = FD.FoldDoc_ID and FD.FoldDoc_ParentID <> 3 and
    NF.DocID = DOC.Pap_Doc_ID And NF.NoteFileContent Like '%a%'
    The above query throws
    ORA-00600: internal error code, arguments: [504], [0x7ADEBE00], [2], [1],
    [cache buffers chains], [723], [0], [0x7ADEBE00]

    Hi,
    We can resize it.Always give the height and weight in
    percentage format. and turn off the horizontal n vertical scroll
    policy in u r main application.
    Hopes it helps you...

  • Resizing Accordian based on the content in each component within in it.

    Hi,
    I wanted to know whether is there a way to resize Accordion
    component based on the content in the present tab.In my Accordion I
    am using four Canvas as its four children.The data in each of the
    canvas changes based on the Accordian tab selected. I want to
    dynamically resize the entire accordion based on the content in the
    canvas for that tab.
    In short the height of the Accordion need to change
    dynamically based on the tab selected. I have tried using the
    resizeToContent property but this didn't solve the problem.
    Thanks,
    amar.

    Hi,
    We can resize it.Always give the height and weight in
    percentage format. and turn off the horizontal n vertical scroll
    policy in u r main application.
    Hopes it helps you...

  • How can I filter based on the IPTC core information?

    How can I filter based on the IPTC core information? (CS6)

    "Substitution Variables" can do what you are asking for.

  • I have just finished editing a feature length documentary for theatrical  release. How should I output it for the highest quality finished product?

    I have just finished editing a feature length documentary for theatrical  release. How should I output it for the highest quality finished product?

    You may find this article. interesting.
    Good luck,
    Russ

  • How can we print the Stock Transfer Purchase Order

    Hi,
    How can we print the Stock Transfer Purchase Order??
    Because from Transaction ME9L & ME9F, we can print simple PO's like NB, MPR etc..but Stock Transfer PO could not print.
    Plz guide, from where we can do it...

    Messages for PO are set in MN04. For details on how to follow this link:
    Re: Problem with PO output determination MN04
    Once the record is set here you will see the records in ME23n under messages button in header.
    Edited by: Afshad Irani on Apr 30, 2010 10:09 AM

  • How to restrict the user to enter the item in purchase order?

    I want to restrict user to enter the item in purchase order.
    How can i do this?
    Please help
    Abhishek

    Hi,
       You may create a transaction variant for ME21N in SHD0 transaction. Make the item field as output only as shown below:
    Result:
       You may check the doc: Learning SHD0 with Example
    Regards,
    AKPT

  • The Airplay icon does not show, regardless that it is clicked on display. How can I do to see the Airplay Icon in order to connect my apple TV with my Mac Pro?

    The Airplay icon does not show on my Mac Pro, regardless that it is clicked on display. How can I do to see the Airplay Icon in order to connect my apple TV with my Mac Pro?

    To check your model go to About This Mac (by clicking on the Apple icon, top left) and then select more info. If you wish to use mirroring you will need one from 2011 or later running OSX 10.8 or later. The alternative would be to use 3rd party software like Airparrot.
    About AirPlay Mirroring in OS X

  • How to see the list of purchase order

    hi,
    Please kindly guide me how to see the list of purchase order released and unreleased both.
    Regards,
    Sanchita

    Hi
    Check it out in Tcode ME2N
    Menu bar - Edit -Dynamic selections - Purchasing document header - Release status.
    Check it out.
    Thanks
    Raman

  • How do I turn off/on the internal antenna in order to connect an external antenna

    MacBook Pro, 10.9.1, Mavericks, retina display --- 2 questions
    How do I turn off/on the internal antenna in order to connectand use an external antenna.  Second question, I mistakenly installed the wrong driver for the external antenna, How do I uninstall it?

    Log onto icloud.com on a computer and see if you can turn it off on there.

  • How to give a user just the acess to its order services/affectations ?

    Hello experts,
    Do you know how to give a user just the acess to its order services/affectations ?
    Thanks for your answer,
    Best regards,
    Alexandre Dupont

    For order services, contracts and activities set object CRM_ORD_OP as I said.
    For Ibase use CRM_IBASE but with this one it is not possible to set authorizations only for own ibases. Maybe there is some other object for ibases.
    Also for business partner there is no such authorization object to shown only own partners. You have 2 options. To play with object B_BUPA_GRP but that means you will have to maintain group for each responsible employee. Or you implement logic in badi BADI_CRM_BP_UIU_AUTHORITY.

Maybe you are looking for

  • SAP Query selection texts are missing

    Dear All, I have a problem with selection texts when running a query. There are two systems: development and test. In the dev system selection texts are displayed correctly but in the test system I got only something like: SP$00001 SP$00002 SP$00003

  • How to check 1000+ values comming as In parameter in plsql code.

    Hi, For a PLSQL procedure I am geting in all 5 parameters from front end. One of which is a comma separated list of 1000+ values. Now I need to check these values to retrieve from the database. eg. create procedure sp1(param1 date, param2 varchar2,pa

  • Issue regarding sending attachment mail

    hi all i am using function module "SO_NEW_DOCUMENT_ATT_SEND_API1" i am facing problem in sending attachment .....if width of my text line is more than 255. pls guide me how to proceed further

  • Basic doubt in CTE

    Hi all,    Learning CTE in deep, I encountered the sentence "Enable grouping by a column that is derived from a scalar subselect, or a function that is either not deterministic or has external access" What is the exact issue of CTE here,How CTE appli

  • Place in Indesign not working

    Hey guys I know this has happened to others but havent found an answer. I have all the latest CC 2014 versions, and my copy of Bridge doesn't have the PLACE IN INDESIGN option avaliable from the contextual menu. Is there a way to fix this? Thanks!