Update the FI document with the PO customer number

Hi,
Is it possible to update a header field or item line field of customer of the FI document with the PO customer number or sales document of PO (VBAK-VBELN) at the billing moment. I cannot do by standard substitution because the original field is not saved in the table BSEG or BKPF. 
Thanks,
Cecilia

It can be done via substitution with exit.
You can configure your exit and then ABAPer can define the code for that exit in the copy of the program RGGBS000 assigned to the substitution in view V_T80D (Transaction SM30)
In ABAP code you can fetch the values from various tables.
Regards,
Gaurav

Similar Messages

  • How to update the merged customer information in custom tables?

    The "Setup merge Dictionary" is provided only to register APIs that would be called to update the merged information for parties.
    Is there a similar feature for the account merge?
    If anyone has any ideas of how to update the columns like customer_id, cust_acct_site_id etc. in custom tables at the end of customer merge, please let me know. Any sample code would be of great help.
    Please let me know ASAP.
    Thanks in advance,

    There is one method which I have used. The crm side uses a file called jtf_hooks_data. There is no guarantee that it will work in the future and you will have to test it. The merge program uses this sql
    'SELECT hook_package, hook_api,product_code ' ||
    'FROM jtf_hooks_data '||
    'WHERE package_name = ''ARP_CMERGE_MASTER'' ' ||
    'AND api_name = ''MERGE_PRODUCTS'' ' ||
    'AND execute_flag = ''Y'' ' ||
    'ORDER BY execution_order ';
    Your procedures have to have the same signature as the one being called. Issues the select statement on your system and see what is returned.

  • Updating a XML document with a processing instruction

    Greetings Guru's
    I have a fully functional XML database solution for our new system. The only thing left is for me to update a xml document in the database with a processing instruction to find the style sheet (JAXB strips it out when the XML must go back into the database).
    I can update complete nodes and node elements in the xml document using updateXML in a regular update statement, but I do not know how to add the following processing instruction to my documents.
    <?xml-stylesheet type="text/xsl" href="/RASWEB/JIT_REPORT.xslt"?>
    [pre]
    Thanks in advance
    Derrick                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    SQL> var xmltext varchar2(4000)
    SQL> --
    SQL> begin
      2    :xmlText := '<Hello>World</Hello>';
      3  end;
      4  /
    PL/SQL procedure successfully completed.
    SQL> drop table t
      2  /
    drop table t
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL> create table t of xmltype
      2  /
    Table created.
    SQL> set long 10000
    SQL> --
    SQL> insert into t values (xmltype(:xmltext))
      2  /
    1 row created.
    SQL> select *
      2    from t
      3  /
    SYS_NC_ROWINFO$
    <Hello>World</Hello>
    SQL> update t set object_value = updateXML
      2                              (
      3                                object_value,
      4                                '/',
      5                                xmlconcat
      6                                (
      7                                  xmlpi("xml-stylesheet",'type="text/xsl" href="/RASWEB/JIT_REPORT.xslt"'),
      8                                  object_value
      9                                )
    10                              )
    11  /
    1 row updated.
    SQL> select * from t
      2  /
    SYS_NC_ROWINFO$
    <?xml-stylesheet type="text/xsl" href="/RASWEB/JIT_REPORT.xslt"?>
    <Hello>World</Hello>
    SQL>

  • Validate and update a XML document with rules

    Hi,
    In my project work, I am thinking about using oracle rules BRMS (business rule management system) to validate certain rules on xml document.
    Since I am new to the oracle rules, I want to know the feasibility of doing this with oracle rules.
    I have a specific question...
    I have XML documents that are in different schema versions. these schema are fixed but can add them in future as well.
    I have two things to do:
    1. transform a given XML document (in a one version) to another version
    2. Validate the new XML document against the rules defined in the oracle business rules.
    1.I can do the 1st task using XSLT transformation. But there is one challenge. Assume that there are new tags are added in the target schema compared to the source schema of the XML document.
    If there are optional tags to be added, I want to know if oracle rules can be used for that. Because I want to make these things done without changing the code (java) or the application internals.
    2. I have few questions on the 2nd issue. They are:
    a) can I create rules in oracle BRMS based on target schemas. (or to all of them. If so, what needs to be done if I add a new schema in future. How to update the rules?)
    b) is it possible to group the rules created above in oracle BRMS.
    Lets say
    R1, R2 rules are created against schema1 (version 1)
    R3, R4, R5 rules are created against schema2 (version 2)
    R6, R7 rules are created against schema3(version 3)
    Can I create group R1, R2 and R6 rules in to a one group (G1) and R1, R2 and R7 rules in to another group (G2).
    What are the APIs available in oracle BRMS to retrieve above defined groups at run time? (because business user can define any rules, ad group them at run time)
    Once I have the groups, How can I validate a XML document against a group created above? What are the APIs available for this.
    c) is it possible to add/update/delete tags to a XML document based on rules in oracle BRMS? if so, how?
    appreciate your valuable feedback on this..

    Hi Hareendra,
    I think you should post your question in this other forum:
    Forum Home » SOA & Process Management » SOA Suite
    Oracle Business Rules is a component used in SOA Suite
    Regards!
    Jorge

  • Update existing marketing documents with price changes

    I am looking for a way to auto update sales order prices when the item price list changes. is this possible? I havent been able to find a way to change the price on an existing marketing document automatically.

    Gordon is correct, you need to do it manually.  However there is a quick and easy way to update a whole document in one hit...
    Open the document, hit form settings, change the price list to a different one, hit OK, it will then ask if you want to update, it doesn't really matter if you say yes or no at this stage.  Then go back into form settings, change the price list back again, hit OK and this time when it asks you if you want to update, make sure you say yes.
    This will update the document pricing to reflect the current pricing in the price list you have selected.

  • Want to Update the Old Material Number

    Hi all,
    I have Old material number (MARA-BISMT) and i want to update the table - MARA in SAP, please tell me ways of updating the same.
    Any suggestion welcome.
    Regards,

    Hi,
    Write a program which does the updating. In the pgm:
    define 2 internal tables called it_mara and it_mara1 like mara.
    select * from mara into it_mara where (give 1 condition which relates to ur requirements).
    loop at it_mara.
    change it_mara and move the changes into it_mara1 table.
    endloop.
    now it_mara1 would have all the modified entries which needs to be updated in the MARA table.
    now give the "modify mara from table it_mara1"  statement which updates the already existing records in the DB table.
    Reward points if helpful.
    Thanks,
    Archana

  • Selcetion with MB51 and Customer number

    When we select in transaction MB51 with movement type 601, customer number and posting date we got only all shipments without customer special stock (E) in the document list.
    But we want to see all shipments from unrestricted stock and from customer stock for one customer in a entered period.
    Are there any settings in Customizing to solve this problem?

    Hi Rudolph
    You can check customizing in the below path and modify your MB51 according to your requirement.
    spro>MM>inventory mangement>reporting>define display selection for material document list.
    Assign the required selection or output field here for program RM07DOCS. You can pick fields of MSEG and MKPF tables.
    Here you can modify MB51's selection screen and output screeen. Hope this will help you.
    Regards
    Antony

  • Query to get the new customer or updated customer in last 3 days in AR

    hi Consultants,
    we have a custom customer summary table whcih maintain the all customer details with balance and aging bucket information.
    we have program to update this custom table daily base based on the day transation. now we need to find the query to find new customer or updated customer in last 3 days.
    then we need to update the customer to custom table .
    Please advice me
    Thanks in advance
    Anu.

    Hi Vikram ,
    Thanks for your reply.
    Actually we have culoms in my custom table needs to update based on AR CUSTOMER
    below culomn needs to update in my custom table .
    CUSTOMER_ID
    ADDRESS_ID
    CUSTOMER_NUMBER
    CUSTOMER_NAME
    ADDRESS1
    ADDRESS2
    CITY
    STATE
    COUNTRY
    PHONE_NUMBER
    FAX_NUMBER
    POSTAL_CODE
    CONTACT_NAME
    COLLECTOR_CODE
    PAYMENT_TERMS
    CREDIT_LIMIT
    EXPIRATION_DATE
    DB_RATING
    DB_RISK_CLASS
    DUNNING_LETTER_STAGE
    LOCKBOX
    ACCOUNT_OPENED
    SALES_REP
    LAST_COLL_CALL_COMMENT
    FUTURE_ACTION_DATE
    ORG_ID
    LOCATION_NUMBER
    HIGH_CREDIT_LIMIT_LAST_YEAR
    HIGH_CREDIT_LIMIT_YTDPlease advice me how can we find the customer who update the above customer information in last 3 days.
    Thanks,
    Anu.

  • Ship Party in Credit Memo or Debit Memo updates the Billing Document

    Hi,
    We have problem In Credit memos and Debit memos, while updating ship to party its updating Billing document(Invoice).
    Please guide me how can we control.
    Regards,
    Sridhar.

    *Hi Balaji,*
    *Our process steps in following way.*
    *1. Create sales order with ship to party say suppose "X"*
    *2. Create Delivery and Billing.*
    *3. In Credit Memo Request I have changed Ship to Party address to 'Y'.*
    *4.Credit Memo also changed to "Y".*
    *5. Once I changed Ship to address it is updating Original billing document with ship to party to 'Y'.*
    *Please guide me how to prevent preceeding documents should not update ship to address may change.*
    *Regards,*
    *Sridhar.*

  • How to Update the OrderStatus and OrderStatusAudit using BPEL

    Hi,
    I was working on OrderStatus schema using the BPEL.
    In this I have two tables namely OrderStatus and OrderStatusAudit.
    I have Inserted a new Order into both tables. In case I want to update the existing order number in both the tables what I need to do is It must simply Update existing row of the Ordernumber in the OrderStatus table since in this table OrderNumber is primary key.
    But in the OrderStatusAudit table each time when I was updating an existing ordernumber it must insert a new row underthe same Ordername because here the Ordernumber is not the Primarykey.
    (ie) The OrderStatus table should have the Current status of the ordernumber in a single row and the OrderStatusAudit table should have the entire details of what happened eachtime for the same ordernumber.
    My schema for OrderStatus is
    OrderNumber
    OrderStatus
    CreatedDate
    CreatedBy
    ModifiedDate
    ModifiedBy
    My schema for OrderStatusAudit is
    OrderNumber
    OrderStatus
    UpdatedDate
    UpdatedBy
    It was working fine when I was checking for a single Ordernumber giving condition of Switch as particular ordernumber.
    If the Ordernumber is same as in Switch condition it will update the existing row in OrderStatus and insert a new row in OrderStatusAudit and if it is not same as given in the Switch it will Insert a new row in both the tables.
    How can I acheive the same updation if there are many ordernumbers to be updated.
    It must to be done in a single BPEL.
    Please help me.
    Regards,
    Mahes.

    Hi,
    For example you can create a simple BPEL Process and you can throw an error during running process. If input data is not valid and format is not correct you can throw error using throw activity and using catch activity you can catch particular error. The catch-all will handle all the error occurred with the scope.
    you can also refer faulthandling section in the link for more information related to exception handling.
    http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/faults.htm#sthref1188
    Regards,
    Deepa

  • Are ID templates "live" such that changes can be updated across multiple documents?

    SCENARIO:  I have a document (DOC_A) ... from which I make a template (TEMP_T) ... from which I make fa second document (DOC_B).  
    [A --> T --> B]
    After working on DOC_B for a few weeks, I find I have made some really nice changes (paragraph and font styles, etc), which I would love to incorporate in the original DOC_A.    
    [retro-update: B --> T --> A]
    QUESTION 1: Is the underlying TEMP_T 'live" in the sense that I can make changes to it via DOC_B, and then have those changes reflected in (i.e., updated to) DOC_A?
    QUESTION 2: If not, what would be the best, or most efficient, way to update DOC_A so that it incorporates the favorable changes made to DOC_B?
    Thanks in advance.

    You can't have live changes via a template.
    In a similar situation my workflow is to use book feature of InDesign. I make a book which sole purpose is being able to update any book document with any any other book document's paragraph and font styles, etc. This is done by synchronizing function, and you can even synchronize different elements from different document. Try it.

  • Replication of BP linked with Customer number from R/3 to CRM

    Hi,
    We are trying to replicate BP linked with the customer number.
    In R/3 when a BP is created automatically a customer is created for this BP (due to activation of synchrozination- BP -->Customer ) with different numbers and is available in the customer-general data tab of the BP in the field - Customer number.
    Both BP and Customer are having different numbers this needs to be replicated to crm as a BP with the Customer number appearing in the Identificatio tab as R/3 customer number (identification type).
    Example - A BP with number-100 is created then automatically a customer with number 2000 is attached to this BP -100. The same needs to be replicated  to CRM. Both BP and customer shud have same GUID.
    With the settings that is done now two records are getting created seperately one with BP number and other with customer number based on settings in PIDE.
    How can we configure this?
    Thanks & Regards
    Prathiba

    Hi,
    I think you are using some IS component in ECC. Hope you are using BUPA_MAIN and BUPA_REL objects for downloading BP's to CRM. In PIDE you do not need to maintain mapping for customer.

  • Customer creation using BAPI with given customer number

    Hi All,
    Can we create the customer with our own customer number using the BAPI - BAPI_CUSTOMER_CREATEFROMDATA1.
    Generally SAP Creates its own number using number range objects,but i want to create customer with our own specified number.
    I found the BADI - CUSTOMER_ADD_DATA for XD01,but it is not working for BAPI.
    Please give me the solutions.
    Regards,
    Srinivas.

    Thanks once again.
    The interface is like this NON-SAP (Front-end)
                              Mercator
                              SAP (Back-end).
    and the volume of Date is more than 20,000 a day and mercator will put into the 'Q'.i do not think the data flow in front-end and back-end is authentic.
    and lot of business logic is involved in these three systems.
    I found the BADI for this,but it is not working for the BAPI.Please suggest any thing for BAPI - BAPI_CUSTOMER_CREATEFROMDATA1.
    Regards,
    Srinivas.

  • Customer number got blocked in previous dunning

    Hi Friends,
    This is with regard to customer number got blocked in previous dunning which the printout has already generated and the job got deleted by the user.
    When I tried to execute the same customer number in new dunning, it is showing the message "Account D 0010003064 is blocked by dunning run 20090326 MAN01"
    Also I tried to change the dunning level in line item, but I'm not able to change as it is only showing in display mode and showing a message "This document is scheduled in the dunning run 26.03.2009 MAN01. Making a change to this document does not affect the dunning status, You should not make any document changes until the document does not appear in any further dunning selection".
    Could you please let me know how to release the blocked customer from previous dunning.
    Thanks a lot.
    Regards,
    Dwarak.

    Hi,
    The invoices are blocked in one of the previous dunning run.
    Goto F150, give the identification and date as mentioned in the error.
    Identification : MAN01
    Date            : 26.03.2009
    Delete this proposal and dunning run.
    Similarly delete all those dunning run which are only proposed but not run completely.
    Now do a fresh run and you must be able to post the dunning forms..
    Cheers
    Redoxcube

  • SEPA Mandates Registered on wrong Customer Number

    Hello all,
    In the past few months we have been implementing SEPA, we are nearing the end of the implementation, but we still have one issue open. During the implementation of SEPA we have also implemented a new customer model (changing of payer and sold-to-party partner functions). This is leading to the problem that some of the SEPA mandates that we have registered in SAP, have been registered on the wrong customers number, ie. xx2 instead of xx1.
    Now I can't change the status of the mandate to "Obsolete" and then create it on a different customer as the mandate ID number already exists in SAP. So I'm looking for a way to delete the mandates completely from SAP so that I can then create them once again on the correct customer number, but so far I have not yet been able to find such a way. So I'm hoping that you can help me.
    It's concerning mandates for which the mandate ID's where created outside of SAP, so the Mandate number range within SAP should not be a problem.
    Regards,
    Thijs

    hi,
    you have three possibilities to determine the organizational data in SD
    during the EDI inbound process.
    The first possibility is to send these fields in the Idoc-Segment
    E1EDK14 (Qualifier 006 - division, Qualifier 007 - distribution chanel,
    Qualifier 008 - sales organization, Qualifier 010 - sales group,
    Qualifier 012 - ordertype,  Qualifier 016 - Sales office)
    The second possibility to determine is table EDSDC. In this table You
    can make table entries for sales organization, distribution chanel and
    division per customer and vendor. You need an sold-to party and a
    E1EDKA1 segment with an filled vendor in field E1EDKA1-LIFNR.
    (transaction VOE2). Please check these settings.
    The third possibility is to fill it in the IDOC_INPUT_ORDERS user-exits.
    For error analyis, see SAP note 380603
    kind regards
    Paul Quinn

Maybe you are looking for

  • Error while dropping user

    Hi, While i m trying to drop a user it shows the following error: ora -04021:timeout occurred while waiting to lock object sys.dbms_lock; The user is not dropped.How to avoid this error??? Thanx..

  • Can't see the external disk attached to the TC!!!

    Just bought a TC 1TB today. I put a WD 500G external disk to the usb port of the TC. And i found it ways lost the connection to the WD when i see the two airpot disk in my finder. TC's internal disk is fine and never lost, but i sometimes i can not f

  • My macbook pro can't use open GL

    Hello When I try to play a game where you can choose between open gl, direct x etc, the open gl button is unable to push and the game is unplayable because the graphic fails. Any ideas? Best regards Frankensten

  • Element description in Flexible performance appraisal by using Column layout

    Hi Experts, We are on EHP6 and created appraisal template by using OSA. We have chosen Column layout as per the client requirement but element description looks  weird on portal as it doesn't occupy full space please see the portal screenshot  PHAP_c

  • DMVPN behind NAT is registering private IP

    I have a DMVPN behind a NAT and when it connects to the hub it's registering its private address. Routing is working fine to the hub, but when another spoke attempts to contact it, it cannot because all it knows about is the private IP. Is there any