Interface BP Creation

Hi Experts,
We have requirement in our project that we need to trigger an Email whenever a Bp is created for the first time in CRM. CRm is not creating data directly through an ordering system BP will be created and that client wants to trigger an email to Admin informing him for the addtion of the BP.
Regards,
Ashutosh

Hi Ashutosh,
There are two ways to do this-
1. Implement the BADI PARTNER_UPDATE. This is called whenever the BP is saved. Within this, you can call the FM BUPA_GENERAL_CALLBACK and compare the old and new memories. If old is empty and new is filled, it means that the BP is created. Alternatively, you can also just query BUT000 with the  BP number and if its not found , it means that BP is in creation mode. Accordingly, you can trigger the email.
2. Go to transaction swo1 and look at object BUS1006. This has some events that you cna use to trigger workflows, such as sending emails, etc. Just choose the event you want and implement it.
Hope this solves your problem.
Cheers,
Rishu.

Similar Messages

  • Interface Mapping  creation

    Hi,
       I'm doing File -to -File scenario.. but in the sender side i have two files.. and Receiver side i have a single file.. that means. i need to merge this two files into a single file... for this i'm using BPM ..
       for this i created two Message Mappings...(firstsender-to- Receiver   and Second Sender -to - Receiver)
    but how many interface mappings i need to create.. two interface mappings menas.. in the BPM  Integration process  the transaformation step i dont have option to select two interface mappings in the property window..
    so, plz give me a suggestion.. how many interface mappings i need to create...  and  can u telll me the integration process also..  what are the steps i need to take...
    thanks
    Babu

    Hi babu,
    Sorry for the wrong reply.
    You need to create two Abstract interfaces for your two input messages and one more abstract interface for your output message.
    And two outbound interface for two input messages and one inbound interface for your output message.
    Create message mapping between your two input message and one Output message. Use that interface mapping in your Transformation Step.

  • Dynamic expression in interface

    Hi All
    Could someone share a way how to create dynamic expression in ODI interface. Eg. I have metadata and want to build case expression on its basis and use it in interface.
    I have tried several possibilities:
    1) Use Java program in mapping expression.
    But during interface steps creation getJDBCConnection() method returns null for both SRC and DEST.
    Is there is a way how to connect to database?
    2) Generate expression in procedure and use it in interface
    Is there is a way how to pass string from procedure to interface?
    3) Use variable to generate expression
    Pure SQL is not enough to generate my expression, I need cycles, ifs etc.
    4) Use special IKM which replace some substitution symbols with generated expression.
    Well if there is no other choise I'll pick this up but don't want to have additional special KM.
    Could someone propose other solution or workaround for listed?
    Many thanks in advance!
    Oleg Ivanov

    Dev -
    I followed this thread and thought I'll try it in my end. Did the following.
    1)Created a procedure and pasted your code (changed the table name to mine)
    2)Created an interface and connected my source and target. In one of the target columns I put <@=result@>
    3)created a package and brought procedure and interface.
    When I executed the procedure ran successfully but failed at the interface level. I am getting the following error message.
    17008 : null : java.sql.SQLException: Closed Connection
    java.sql.SQLException: Closed Connection
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:227)
         at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:753)
         at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:670)
         at com.sunopsis.sql.SnpsQuery.a(SnpsQuery.java)
         at com.sunopsis.sql.SnpsQuery.a(SnpsQuery.java)
         at com.sunopsis.sql.SnpsQuery.updateExecStatement(SnpsQuery.java)
         at com.sunopsis.sql.SnpsQuery.executeQuery(SnpsQuery.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execCollOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.j(e.java)
         at com.sunopsis.dwg.cmd.h.z(h.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)

  • Using Interface controller in OCA application

    Hi,
    My requirement is to pass information and screen control between two components in two different DCs.
    My parent DC Component has to pass information to my child DC Component and also call the view assembly of the child DC.
    I am using CE7.1 SP07 PAT003.
    In my child DC I have created a component Interface Definition say ChildInterface. In the context of interface controller of ChildInterface I have added a string attribute. ChildInterface also has a view container.
    Now in my Child component I add ChildInterface as my Implemented Interface. I map the window of the child component to the ChildInterface. To the view container I add the default view of the component.
    Now I have created a public part and added the ChildInterface as an entity.
    I add a dependency in my Parent Component to this child DC's public part.
    At design time I can access my ChildInterface's context from my parent component. However, while adding a link from parent default view to ChildInterfaceView, it gives me an error. however on reload it suppress the error but doesnt open the java editors.
    While trying to deploy the applications it gives me a deployment failure message.
    Following is the trace-
    <r id="1240744927041" t="16:52:07" d="2009-04-26" s="E" c="000" u="" g="" m="Missing app.xml in component C:\Program Files\SAP\IDE\CE\eclipse\plugins\com.sap.tc.mobile.dt.oca.rt\MI\bin\..\inbox\demo.sap.comparentimplementation\demo.sap.comparentimplementation.wdl">
    <f n="LocationName" v=" (com.sap.tc.mobile.cfs.deploy.oca.OCADeployer:OCADeployer)"/>
    <f n="ThreadName" v="main"/>
    </r>
    <r id="1240744927042" t="16:52:07" d="2009-04-26" s="E" c="000" u="" g="" m="Deployment of Mobile Component parent(1.0) failed --&gt; java.io.IOException: Missing app.xml in component C:\Program Files\SAP\IDE\CE\eclipse\plugins\com.sap.tc.mobile.dt.oca.rt\MI\bin\..\inbox\demo.sap.comparentimplementation\demo.sap.comparentimplementation.wdl
         at com.sap.tc.mobile.cfs.deploy.oca.OCADeployer.deploy(OCADeployer.java:81)
         at com.sap.tc.mobile.cfs.deploy.DeploymentManager.processDeploymentStatusObjects(DeploymentManager.java:550)
         at com.sap.tc.mobile.cfs.deploy.DeploymentManager.processInbox(DeploymentManager.java:197)
         at com.sap.tc.mobile.cfs.init.FrameworkInitializer.init(FrameworkInitializer.java:192)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sap.tc.mobile.cfs.startup.pda.Startup.main(Unknown Source)
    ">
    <f n="ThreadName" v="main"/>
    </r>
    <r id="1240744927695" t="16:52:07" d="2009-04-26" s="E" c="000" u="" g="" m="Resourcebundle sap.comtcmobilewdlitecontainer could not be found. Trying to use the default bundle.">
    <f n="LocationName" v=" (com.sap.tc.mobile.wdlite.renderer.exception.OCAExceptionLocalizeHelper:)"/>
    <f n="ThreadName" v="main"/>
    </r>
    <r id="1240744927696" t="16:52:07" d="2009-04-26" s="E" c="000" u="" g="" m="Internal Error. Please check the log file. --&gt; java.lang.NoSuchMethodException: com.sap.tc.mobile.wdlite.framework.Start.setUpSystemMenu()
         at java.lang.Class.getMethod(Class.java:1581)
         at com.sap.tc.mobile.wdlite.progmodel.core.Application.resetSystemMenu(Application.java:260)
         at com.sap.tc.mobile.wdlite.progmodel.core.Application.enter(Application.java:242)
         at com.sap.tc.mobile.wdlite.progmodel.core.Application.setCurrent(Application.java:119)
         at com.sap.tc.mobile.wdlite.progmodel.core.Application.launch(Application.java:143)
         at com.sap.tc.mobile.wdlite.progmodel.core.Application.launch(Application.java:175)
         at com.sap.tc.mobile.wdlite.progmodel.core.WDLite.launchApplication(WDLite.java:334)
         at com.sap.tc.mobile.wdlite.framework.Start.runOnContext(Start.java:580)
         at com.sap.tc.mobile.wdlite.framework.Start.startApplication(Start.java:604)
         at com.sap.tc.mobile.wdlite.framework.Start.startContainer(Start.java:641)
         at com.sap.tc.mobile.cfs.framework.spi.FrameworkManager.startContainer(FrameworkManager.java:259)
         at com.sap.tc.mobile.cfs.init.FrameworkInitializer.init(FrameworkInitializer.java:230)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sap.tc.mobile.cfs.startup.pda.Startup.main(Unknown Source)
    ">
    <f n="ThreadName" v="main"/>
    </r>
    <r id="1240744927697" t="16:52:07" d="2009-04-26" s="E" c="000" u="" g="" m="Internal Error. Please check the log file.">
    <f n="LocationName" v=" (com.sap.tc.mobile.wdlite.renderer.exception.OCAExceptionHandler:)"/>
    <f n="ThreadName" v="main"/>
    Please help.
    Regards,
    Nisha

    please do attach the trace files..
    Meanwhile , just check the way you have implemented the interface and the interface defintion of achild node are correct.
    Once the implementations are correct,there should not be problem in deployment.
    Let us know if you need more info on interface definton creation ...
    Regards,
    Lakshmi
    Edited by: Lakshmi Reddi on May 28, 2009 6:03 AM

  • Difference Inbound Interface at business System Service...

    Hello everybody,
    if I open a business system service I see tabs:
    a) receiver --> inbound interfaces
    b) sender   --> inbound interfaces
    But there a also interfaces I see when I open the INTERFACE DETERMINATION.
    My Question:
    I configured a INTERFACE DETERMINATION with a INTERFACE,
    but <b>I CAN'T</b> see the interface if I got to a) or b) (double click on Business System Service) .
    Why? Is there a difference between INTEFACES shown under the Business System Service and INTERFACES shown under the INTERFACE DETERMINATION?
    In my opinion the INTERFACE DETERMINATION belongs to a BUSINESS SYSTEM SERVICE and so should be seen under BUSINESS SYSTEM SERVICE.
    Thanks in advance
    Regards Mario

    hi,
    this means that while specifying your interface
    determination you've choosen ALL interfaces
    from all systems (ALL button in the interface det creation)
    because you've specified all XI didn't use the one which belongs to your business system that you check in a) and b)
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a>

  • Master Data creation Biz Talk

    Hi All,
    I have requirement wherein i need to develop interface for creation of master data ( Material / Pricing/ Source List / Info record) from non sap to sap using BIZ TALK
    Can any one suggest /guide step by step process with configuration details
    Thanks
    Parag

    Hi Parag,
    you can use IDOC adapter to send or receive message (IDOC) from SAP and use the FTP/JMS/SOAP adapter for Legacy integration.
    Please refer the below link
    Receiving IDOCs from SAP by Using BizTalk Server
    Integrating SAP with BIZTALK | SCN
    http://social.msdn.microsoft.com/Forums/en-US/8b716e8f-7ca5-4345-9cc6-75a454311dfa/integrating-with-sap-using-idoc?forum=biztalkr2adapters
    regards,
    Harish

  • EJB compilation and deployment problems

    Dear fellows
    I have good understanding of EJB development process, but the compilation and deployment process of EJB is very problematic for me. Please write me the complete steps which should include:
    1. Starting from class, interface programs creation
    2. Package creation and accessing it along with class path setting
    3. How and where to compile these classes and interfaces (app server details), JAR
    4.deployment details on any app server like SUN, web logic
    Kind regards
    Shahzad faisal

    Dear fellowsDear Shahzad faisal
    Start with the JEE5 tutorial:
    http://java.sun.com/javaee/5/docs/tutorial/doc/
    Part 3 discusses EJB stuff
    I would recommend going to a few samples, bundled with most of the appservers to see the appserver specific stuff.
    >
    I have good understanding of EJB development process,
    but the compilation and deployment process of EJB is
    very problematic for me. Please write me the complete
    steps which should include:
    1. Starting from class, interface programs creationSo you have the classes and interface implemented.
    Next thing is to create a ejb-jar.xml in which your EJBs are defined (optional for EJB3.0)
    2. Package creation and accessing it along with class
    path settingPackaging all in a jar file is enough for an appserver to find your classes.
    3. How and where to compile these classes and
    interfaces (app server details), JARCompilation usually needs the javx.ejb.* classes, most appservers have a j2ee.jar in which the javax.* classes you need are present.
    in jour jar file you package your classes and deployment descriptor
    4.deployment details on any app server like SUN, web
    logicDeployment to appservers is product specific, see the manual here.
    you may want to add some other , vedor specific, deployment settings which are not ejb specification defined, these go into a vendor specific DD, for Sun for example the sun-ejb-jar.xml.
    >
    Kind regards
    Shahzad faisal

  • Real time synchronisation of sap hr employee data with LDAP

    Hi friends,
    I wanted to synchronize sap hr employee data with ldap. I have written a abap program for the same which is using ldap connector interface for creation/modification/deletion of employees. I am planning to put this as a scheduled job.
    But I want to do it  in real time i.e. when the employee is getting created/modified/deleted in sap hr, my program should receive all the values and do the changes in ldap at the same time.
    What all options do i have to do this?
    I am new to sap hr.
    Regards,
    Nilz

    Hi Nilesh
    U can take help of Standard Events in SAP.
    Go to Tcode SWELS.Then Activate Event trace.
    Go and do creation/modification/deletion for employees and Check which allevents are getting triggered in Tcode SWEL.
    This might give U an Initial idea how to go about this.
    ~BiSu

  • Filling the Sales Order Header - Source for filling the dropdown boxes

    Hi,
    I am trying to design the User Interface for Creation of sales order using the WebDynpro's. I want to know, what are all those BAPI's i need to use to fill the following drop down boxes.
    1. Order Type
    2. Sales Organization
    3. Distribution Channel
    4. Division
    As i am new to ABAP., and i am from Java background, i dont know much about the BAPIs used to get the above data.
    Could anyone let me know the source to fill those dropdown boxes. Thanks in advance.
    Thanks,
    Raghavendra

    Ah,my bad.
    Hmmm,i haven't found a BAPI's for filling all your dropdown-boxes with the valid values.
    What about using the FM "RFC_READ_TABLE" to read the values for your drowdown-boxes.(only if you don't want to write a Z*-Function).
    For examlpe for the dropdownbox "Sales Orgs",you can can start this FM for the table TVKOT.
    Is that a possilbe solution for you?
    Greetings
    Frank Brackmann

  • ODSI support for return type "PL/SQL TABLE"?

    Hello!
    We are trying to connect our ODSI to an Oracle function with return type "PL/SQL TABLE". The ODSI "wizard" (used to create the physical data service) seems to understand the interface during creation, but when executed it fails. The ODSI server complains about wrong type (PLS-00382: expression is of wrong type) when we execute it from the "test tab".
    The function's metadata is looks like this:
    <params xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdt="http://www.w3.org/2004/07/xpath-datatypes" xmlns:pn1="ld:physical/rekondis/CALC_DEBITING" >
    <param name="RETURN_VALUE" kind="return" xqueryType="pn1:RETURN_VALUE_ROW" nativeTypeCode="1111" nativeType="PL/SQL TABLE"/>
    <param name="PIN_CASE_ID" kind="in" xqueryType="xs:decimal" nativeTypeCode="3" nativeType="NUMBER"/>
    <param name="PIN_ACTION_CODE" kind="in" xqueryType="xs:decimal" nativeTypeCode="3" nativeType="NUMBER"/>
    <param name="PI_AD_NAME" kind="in" xqueryType="xs:string" nativeTypeCode="12" nativeType="VARCHAR2"/>
    </params>
    Any ideas how we can make this work!? Or is this not even supported in ODSI 10.3?
    Thanks!
    // Mikael

    Please refer to the documentation - http://download.oracle.com/docs/cd/E13162_01/odsi/docs10gr3/datasrvc/Create%20Physical%20Data%20Services%20from%20Stored%20Procedures.html

  • Passed Flex 2 ACE Exam - Whoo Hoo !!!

    I took (and passed) the Flex 2 Adobe Certified Expert (ACE)
    exam today.
    Minimum score 73% and I got a 77%.
    I studied pretty hard for this exam, though I was weak on
    Flex Data Services. My strength in other areas saved me.
    Section Name - Percent Correct
    Flex Application User Interface (UI) Creation - 93% correct
    Flex System Architecture and Design - 92% correct
    Flex Application Programming Fundamentals - 75% correct
    Interacting with Remote Data and Flex Applications - 46%
    correct
    I thought the exam was tough! I had doubts I would pass, but
    I said a prayer at the end, maybe that helped.

    congrats man, I had mine scheduled tomorrow and had to
    reschedule it for next month, I have to study fds more better even
    if its not existent anymore :(

  • Accessing "Configuration Model"-classes

    hi,
    i've created a "Configuration Model" and added some classes to store my data during runtime of a webdynpro-application.
    but how can i access these classes? the wizard created the objects as interfaces (even if i hadn't selected the option "Interface" during creation).
    how can i achieve to instatiate these classes?
    kr, achim
    or is there another way for creating Model-classes from self-defined dictionary structures?

    <i>Still not sure you are following right direction...
    </i>
    (first, i think it's time to tell you, how i appreciate your extraordinary help
    of course i read the docs you've mentioned.
    ok, let's put it all together - what i've done so far, what i know and what i want to do:
    i'm receiving a table of strings from abap via rfc-model that look like
    "HAUCK     ACHIM     STREET1   MYCITY    STREET2   MYCITY    "
    out of these strings, i have to build objects (javabeans) that i have to deal with within my webdynpro application.
    the structure of theses strings, i've defined in the localdirectory:
    ZDebtor
      String[10] lastname;
      String[10] firstname;
      List ZAddress;
    ZAddress
       String[10] Street;
       String[10] City;
    and NOW....
    i need a model for storing the javabeans where i can manipulate them (i don't care <i>how</i> it is created: via xmi-files, manually, configuration model, etc.)
    after manipulating the objects, i have to build the abap-table out of strings from the model-to-be-created and put it back to abap.
    at the moment, i'm cutting the strings manually in the controller context-nodes that were created with the structure-definitions. but, as i already mentioned, a model should be the better place to put the data used here.
    all attempts to create a model failed, so far.
    i've got no external uml-modeler and it shouldn't be necessary for these few classes.
    i can live with the "manually controller context solution", but i've got that feeling that's it could be done better...
    kr, achim

  • Please give the answer

    whats the purpose of DATA BASE UTILITY

    Hi,
    Its used to adjust the database
    suppose you have a table which already has data & you modify the table
    before you activate the table you will have to use SE14 to adjust the table
    this is done by the data base utility
    alos if you want to drop any table you can use the same utility
    kindly reward points to helpful answers ...
    Also this takes the I/P from SE11 to create the required objects in the DB ...
    its the Interface for creation / deletion / editing database objects from within SAP

  • Iproute2 and vlans

    hi all.
    i've got trouble with newly installed arch.
    when i try to create vlan with command:
    /usr/sbin/ip link add link eth3 name qinq32 type vlan id 32
    or
    /usr/sbin/ip link add link eth3 name eth3.32 type vlan id 32
    in result i get interface named something like rename8.
    in `ip monitor all` i see something like this:
    [LINK]8: eth3.32@eth3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN
    link/ether 00:04:23:d0:95:73 brd ff:ff:ff:ff:ff:ff
    [LINK]8: rename8@eth3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN
    link/ether 00:04:23:d0:95:73 brd ff:ff:ff:ff:ff:ff
    so ip utility renames created interface to name which differs from given by me.
    uname -a:
    Linux hellheim 3.0-ARCH #1 SMP PREEMPT Tue Oct 4 15:38:22 CEST 2011 x86_64 AMD Opteron(tm) Processor 848 AuthenticAMD GNU/Linux
    ip -V:
    ip utility, iproute2-ss110629
    one variant of resolve trouble is renaming interface after creation. but that's not good way because creation of interfaces occures from bash script. it's not good way to catch newly crerated interface name.
    which variant of resolving trouble propose community?
    P.S.
    at neighbour system with such kernel and iproute2 utility version all works fine.

    fukawi2 wrote:
    I don't have a solution, but FWIW I tested those commands on my Arch machine and it works as expected:
    morpheus ~ # ip link add link eth0 name qinq32 type vlan id 32
    morpheus ~ # ip a s qinq32
    195: qinq32@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN
    link/ether 6c:f0:49:e8:64:28 brd ff:ff:ff:ff:ff:ff
    morpheus ~ # uname -a
    Linux morpheus.fukawi2.pvt 3.0-ARCH #1 SMP PREEMPT Wed Aug 17 21:55:57 CEST 2011 x86_64 Intel(R) Core(TM) i5 CPU 650 @ 3.20GHz GenuineIntel GNU/Linux
    morpheus ~ # ip -V
    ip utility, iproute2-ss110629
    morpheus ~ #
    eahh... i've the same picture in another machine. seems like this is feature in only one of them. and i don't understand the way to fix it...

  • Questions about PO creation / update / cancel interfaces

    Hi there,
    An E-Business Suite 11.5.10.2 customer wants to use the 11i PO creation / update / cancel interfaces in order to manage Purchase Orders created from a 3rd party system.
    I've been through the 'Oracle Purchasing Open Interfaces' guide (115mfgapi.pdf), but it's still unclear to me whether:
    1/ It is possible or not to add a new PO line to an existing PO through the interfaces ? If yes, how do one do that: what interface ? sample code ?
    2/ It is possible or not to change the distribution (= accounting information) of an existing PO line ? If yes, ...
    3/ It is possible or not to reject the full PO document if a single line fails during the PO creation ? Same for a batch of POs: reject the full batch if a single PO fails ?
    4/ Is it possible or not to cancel a PO line even if the shipment already occured ? And even if the payment already occured ? Are there some controls here ?
    Thanks for your help,
    Kind regards - Hugues

    1. Answer is YES. You can add a line to an existing standard purchase order by choosing the UPDATE. This can be done through Purchase Documents Open Interface.
    I can not give an example. It's quite long to write it. But You should use Open interface user guide to find nessesary columns. Just insert new row with status UPDATE and try to import
    2. Think You can NOT.
    3. Answer is YES. You can do it. Use "Cancel PO API". Function name is PO_Document_Control_PUB.control_document ().
    For technical details read Open interface UG.
    You must create exception to be avoid problems if some lines can not be canceled.
    4. Answer is YES. You can do it if there's still expected quantity to recive.
    boldJust from UG:*bold* :)
    bold1. Purchase Order Change APIs. bold
    boldThe APIs enable you to do the following*bold*:
    - Record Acceptance/Rejection in Oracle Purchasing
    - Update quantity, price, and promise date on standard purchase orders or releases in Oracle Purchasing
    boldSo only qty, promissed date, price*bold*
    boldRead next*bold*:
    Line Level Validation and Update: This logic occurs when LINE_NUM is not null
    and SHIPMENT_NUM is null.
    1. No update occurs if the line status is FINALLY CLOSED or CANCELLED.
    2. The new quantity or price value must be positive.
    3. If updating quantity, the new quantity must be greater than or equal to the
    greater of total quantity_received of all shipments and total quantity_billed
    of all shipments for this line. After the update takes place, the new quantity
    will be prorated at the shipment level and for each shipment the quantity is
    prorated at the distribution level if applicable.
    4. If updating price, no update occurs if a receipt has been created against one
    of the line’s shipments and it's been accrued upon receipt. No update
    occurs if an invoice has been created against one of the line’s shipments.
    After a price update takes place, price changes are rolled down to the
    shipment level for standard POs. No price update occurs for a release if the
    Price Override flag on the blanket purchase agreement Line is No.
    boldSummary:*bold*
    boldYou can update qty if still there's a qty to receive (Expected) and if PO still is not canceled*bold*
    boldEXAMPLE:*bold*
    Usage Example
    set serveroutput on;
    -- After the API completes, do not forget to commit if the result is 1
    -- and rollback if the result is 0.
    DECLARE
    l_result NUMBER;
    l_api_errors PO_API_ERRORS_REC_TYPE;
    BEGIN
    -- This needs to be changed according to your environment setup.
    FND_GLOBAL.apps_initialize ( user_id => 1318, resp_id => 50578, resp_appl_id => 201 );
    -- Record an acceptance of Y for PO 1261.
    l_result := PO_CHANGE_API1_S.record_acceptance(
    x_po_number => 1261,
    x_release_number => null,
    x_revision_number => 0,
    x_action => 'NEW',
    x_action_date => null,
    x_employee_id => 588,
    x_accepted_flag => 'Y',
    x_acceptance_lookup_code => 'On Schedule',
    x_note => 'All valid',
    x_interface_type => 'APITEST',
    x_transaction_id => null,
    version => '1.0');
    IF (l_result <> 1) THEN
    -- Handle the errors in the PO_INTERFACE_ERRORS table.
    END IF;
    -- Change the quantity to 5 on line 1, shipment 1 of PO 1263.
    l_result := PO_CHANGE_API1_S.update_po (
    x_po_number => 1263,
    x_release_number => 1,
    x_revision_number => 1,
    x_line_number => 1,
    x_shipment_number => 1,
    new_quantity => 5,
    new_price => NULL,
    new_promised_date => NULL,
    launch_approvals_flag =>'Y',
    update_source => NULL,
    version => '1.0',
    x_override_date => NULL,
    x_api_errors => l_api_errors,
    p_buyer_name => null
    IF (l_result <> 1) THEN
    -- Display the errors
    FOR i IN 1..l_api_errors.message_text.COUNT LOOP
    dbms_output.put_line ( l_api_errors.message_text(i) );
    END LOOP;
    END IF;

Maybe you are looking for

  • Using the variable placeholder ? in an XPath expression

    I'm trying to using the variable operator (?) in an Oracle prepared statement used in a query where clause. Here is the query: select xt.APPLICATION_NAME, xt.VERSION, xt.EVENT_TYPE, xt.SENDING_SITE, xt.RECEIVING_SITE, xt.EVENT_ID       from AUDITED_E

  • Change logs for tcode WE20 and MN04

    Hi Gurus, Good day. Please help. does WE20 and MN04 generates change logs? If yes, please advice on how to check change logs of both transactions. Thanks in advance.

  • How can I tell if anyone's downloaded or hacked my iPhone info

    I just hired a mobile service to repair the cracked screen on my phone (yes, I know should have gone to Apple store to have this done). They drive to your house and fix it in their truck while you wait in your house. When I handed him my iPhone befor

  • Firewire Port

    This is my first post to this board, but I have been reading it lately. Thank you all for the schooling! I recently shorted out the firewire port on my JVC HD GY100. It seems to be a common problem from what I hear (the repair tech in Atlanta told me

  • Need Spotlight to index a few folders only

    I'm in Spotlight ****. I basically want to disable it but Logic uses Spotlight to find sounds, so I need to index a few folders in the Library/AppSupport and User/Library/AppSupport only. The problem is that I can add volumes and folders to the priva