Substituting Reference field in BKPF with Trip Number

Hi,
We have a requirement from our client, where in we are required to suffix the reference number field in BKPF with a letter "A", when the posting document contains the text "Advance" in Vendor Line Item.
To give a brief idea we are creating Advance from PRRW transaction from travel management and the same gets posted in FI with a document number.
All Advance posting have "Advance" in the Text field of Vendor line item. So, the requirement is when "Advance" text is present in Line Item the BKPF Reference field should be suffixed with letter "A".
To fulfill this requirement we had already created User Exit and used the same in substitution in FI however the same is not triggered when documents gets posted from PRRW transaction. So, please let me know, if there is any way to achieve this requirement.
Regards,
Devdatth.

Hi
The transactions from PRRW may not be substituted through FI Substitution. Check if the BTE 702910 can be used in your case as described in SAP OSS Note 588295.
Regards
Sanil Bhandari

Similar Messages

  • CFUPDATE problem with field name beginning with a number

    I have a form (actually several) that is gathering data for a survey. I tried to use cfupdate to update the data elements and got a string index out of range error. I tested again without the form fields that began with numbers and it worked just fine. I then tried to enclose the offending field names in () and []. Both times I got same error. Does anyone have a work around for this? The code and error are below.
    Changing the field names is not really an option. This survey has almost 400 data points and most of the fields begin with the question number.
    Thanks
    DW
    <cfupdate datasource="#application.fdp_datasource#" tablename="arra_survey1" dbtype="ODBC" formfields = "entry_no, 2_a_fy09, '2_a_fy10', '2_a_fy11', '2_a_fy12', '2_b_fy09', '2_b_fy10', '2_b_fy11', '2_b_fy12', '2_c_fy09', '2_c_fy10', '2_c_fy11', '2_c_fy12', '2_d_fy09', '2_d_fy10', '2_d_fy11', '2_d_fy12', '2_e_fy09', '2_e_fy10', '2_e_fy11', '2_e_fy12', '2_f_fy09', '2_f_fy10', '2_f_fy11', '2_f_fy12', '2_g_fy09', '2_g_fy10', '2_g_fy11', '2_g_fy12', '2_h_fy09', '2_h_fy10', '2_h_fy11', '2_h_fy12', '2_i_fy09', '2_i_fy10', '2_i_fy11', '2_i_fy12', '2_j_fy09', '2_j_fy10', '2_j_fy11', '2_j_fy12', '2_k_fy09', '2_k_fy10', '2_k_fy11', '2_k_fy12', '2_l_fy09', '2_l_fy10', '2_l_fy11', '2_l_fy12', central_office, dept_office, incl_other, 3_a_fy09, 3_a_fy10, 3_a_fy11, 3_a_fy12, 3_b_fy09, 3_b_fy10, 3_b_fy11, 3_b_fy12, 3_c_fy09, 3_c_fy10, 3_c_fy11, 3_c_fy12, 3_d_fy09, 3_d_fy10 3_d_fy11, 3_d_fy12, 3_e_fy09, 3_e_fy10, 3_e_fy11, 3_e_fy12, 3_f_fy09, 3_f_fy10, 3_f_fy11, 3_f_fy12, 3_g_fy09, 3_g_fy10, 3_g_fy11, 3_g_fy12, 3_h_fy09, 3_h_fy10, 3_h_fy11, 3_h_fy12, 3_i_fy09, 3_i_fy10, 3_i_fy11, 3_i_fy12, 3_j_fy09, 3_j_fy10, 3_j_fy11, 3_j_fy12, 3_k_fy09, 3_k_fy10, 3_k_fy11, 3_k_fy12, 3_l_fy09, 3_l_fy10, 3_l_fy11, 3_l_fy12">
    String index out of range: -2
    The error occurred in C:\Inetpub\wwwroot\directory\process_arra_suvey_2.cfm: line 12
    12 : <cfupdate datasource="#application.fdp_datasource#" tablename="arra_survey1" dbtype="ODBC" formfields = "entry_no, 2_a_fy09, '2_a_fy10', '2_a_fy11', ...

    I think you have run one of CFUPDATE's limitations.  I am not 100% certain, but I do not think cfupdate provides a way to escape invalid column names like yours.  In which case you may need to do a regular UPDATE within a  cfquery instead... or rename your columns.
    fields that began with numbers
    Most databases discourage creating column names that start with a number (or other restricted characters).  While many databases will allow you to escape invalid names, it is simpler all around to avoid them altogether.  Otherwise, you may have to escape the names in every single query. The recommendations vary, but usually object names that begin with a  letter, and contain only letters, numbers and underscores are considered  safe.
    This survey has almost 400 data points and most of the fields begin with the question number.
    Four-hundred (400) is a lot of columns for a single table.  The fact that they all them seem to contain the same type of information (ie response to a question) is an indication that data should probably be stored in a separate table, as rows, not columns.  For example questions could be stored in one table, possible answers in another, and the results of an individual test/survey stored in a third table.  A structure like that is much easier to query, can easily accommodate changes (add/remove questions, responses, etcetera) without having modify the table every time.

  • Cic winclient :  Extra search field is populating with BP number

    Hi guys
    I enhanced the IC WINCLIENT search criteria with Extra field ( BP External number) in the BP extended search area i.e application area by adding the HTML code and I Modified all the relevant function modules,  when I am searching with BP External number it was working fine, <b>except in the result screen Extended field ( BP External number) is filling with BP Number not with the  BP External number .</b>
    is it required to make any changes in the html code
    I did the below HTML code
    <TR><TH align=left width=28%>BP External Number</TH>
    <TD width=72%><INPUT name=BP1_BPEXT size=20 maxLength=20 type=TEXT/PLAIN>
            </TD></TR>
    Pls help me what I am missing
    Thanks in advance
    Warm regards
    Rajasekhar
    <b></b>

    Hello,
    please see note 950975 and check IE versions and also check that the latest GUI patch is available on the users PCs.
    Regards, Gerhard

  • How to configure the Reference Field of BKPF-AWKEY from FI Doc MIRO?

    Hi All
    From my testing, I found out that this field (BKPF-AWKEY) is used to store doc reference of the docs, where this transaction was actually originated.
    In case of MIRO,  BKPF-AWKEY = MM inv doc no + MM inv year.
    I know where to find the path to define AWKEY for BKPF in SPRO. However, I am more interested to know the path as of what combination to put in for this field for the configuration.
    Thanks.

    Hi,
    You cannot configure the logic for this field; it's hardcoded in the core processes.
    Regards,
    Eli

  • Invoice reference field automatically updated with 'V' via BAPI

    Dear Experts
    While we posting a document through "BAPI_ACC_DOCUMENT_POST "  getting invoice ref by default as ‘v’ as per below screen shot but
    in BAPI we are not getting any filed through which we can set it. Kindly guide me s a solution for this issue
    Reagrds
    Ajeesh.s

    Hi Ajeesh
    This is SAP recommendation that you when you are posting Cr Memo, this field must be populated as V
    Thats the best practice
    Br. Ajay M

  • Reference field for Automatic Clearing - STO

    Hi All,
    This pertains to automatic clearing of line items in Cenvat Clearing Account for STO transactions.
    Our client is using J1IIN for creating outgoing STO Excise Invoice at sending plant. The accounting document posted will have Billing Document Number in its reference field.
    The accounting entry will be:
    Cenvat Clearing A/c Dr.
    Cenvat Payable A/c Cr.
    In the receiving plant an incoming excise STO invoice is posted in J1IEX. In the accounting document, the reference field is filled with the excise invoice number generated in J1IIN.
    The accounting entry will be:
    Cenvat Receivable A/c Dr.
    Cenvat Clearing A/c Cr.
    Since the reference fileds are having different document numbers, clearing the open items in Cenvat Clearing Account using automatic clearing has become difficult.
    Need inputs on how to get a common text (either Billing Document Number or Outgoing Excise Invoice Number) entered in reference field for both the Excise Invoices in J1IIN and J1IEX, so as to make this automatic clearing work fine . . . .
    Can anybody help in this regard..??
    Regards,
    Ravi Kumar

    Hi
    In OB74  we have following options for defining rules
    COA      A/Type     Frm No      To No         Criter 1      Criter 2      Criter 3      Criter 4      Criter 5
         D     1     9999999999     VERTN     VERTT     VBEWA
         D     A     Z     ZUONR     GSBER     VBUND
         K     A     Z     ZUONR     GSBER     VBUND
         S     0     9999999999     ZUONR     GSBER     VBUND
    From the above we can have options for
    1. For all accounts or selected one account , we can have upto 5 criterias for our decision to vlear
    2. We can have COA level decisions also
    3. We can have Account type level decisions - Vendor, Customer & GL accounts - one or many and can many rules defined.
    4. apart from the above you have the option to clear the criteria order of the field for account type definitions level
    Please go through the settings - SPRO-GL/AP/AR- Business Transactions- Open items processing- auto clearing 
    whether this helps u to understand the logic

  • Substitution - Reference field by merging value of two fields

    Dear All,
    We are trying to make a substitution to Reference field with the values picked from two different fields. Please suggest how to do this.
    Eg. Substituting reference field with "Period" and "Fiscal Year" field values.
    Your contribution will be of immence help.
    Thanks in advance,
    Regards,
    Viswanath

    Dear Vishwanath,
    You could pass two variables to the form of the substitution exit. You would need to export these two values to the form.
    Regards,
    Naveen.

  • Invoice reference field on Customer line item

    Hi All,
    When a billing document is released to accounting, on the customer line item display (FBL5N), the invoice reference field has the FI document number in it.
    But if we actually look at the Customer line item on the FI document (FB03), the invoice reference field is blank.
    Not sure what is happening over here.
    Any inputs on this..
    Thanks,
    Venkat

    OK, i would suggest check OSS on this field, because if this happens for the same document number, than it is a program error (I guess), if it was working fine earlier, and not working fine now, than could be chnage in customizing (if the fill of this field is customizable at all), or a change in the functionality (either standard, or user-exit)

  • SO number in reference field in accounting doc after GI posting

    Hello,
    In the header of accounting document, which is being created after posting goods issue, in the "Reference doc." field delivery number is displayed.
    Is it possible to have in this field sales order number?? If so, where can I change this set up?
    Regards,
    Sylwia

    Hi Sylwia,
    This goes to the same explanation I gave you in previuos inquiry. Talk with you Sales & Distribution folks or go to the set up of copy control strategy that drives transfer of information "Copying control: Delivery document to billing document" (Tcode: VTFL). Select the right combination Billing/Delivery and change the header reference field to capture the sales order number. Again when the financial document is released to accounting the value would be transferred.
    Hope this helps.
    Thanks,
    GG

  • Bank statement number not updating in reference field

    Hi All,
    After importing EBS, reference field of the posted document will be updated default as "HOUSE BANK" ACCOUNT ID" and "Statement number". But in my case statement number in this field is updating up to 11999.
    Means, if I run EBS upload with statement number 12000 it is updating as 11000. This is updating in Table FEBEP also. I could see FEBA with statement number 12000.
    Do you have any idea where this is controlling.
    Regards
    SM

    Hi,
    the first 2 digits are for the year and the last 3 are for the statement number.

  • Reference field (BKPF-XBLNR) not auto populate during simulation

    Hi all,
    During GL posting using t-code FB50 or FB01, I already entered value in Reference field.
    After all fields keyed-in, I choose Document - Simulate to check the entries.
    In this simulation screen, value which I entered in Reference field previously is gone.
    Anyone knows what happened? As far as i know, the value should just carry from the initial screen I entered.
    Thank you.

    Hi Dev,
    Apart from SAP note, I am thinking of using BKPF-BKTXT for storing UTR number & later on use for clearing BRS. Am not getting Int. algorithm for this field. Am doing Manual Reco by FF67.
    Am planning to use manual Int Alg. 901. I need steps to use the same. Any idea please ?
    PS: SAP note suggests us to add new field specifically for this in mother table BSEG & BSIS, which I want to avoid.
    Regards
    Message was edited by: raju M

  • Check Number in Reference field

    Hello SAPians,
    There is a requirement from my client as below:
    Vendor payment is done by T - CODES  F-58  or FBZ4
    (POST & CHECK PRINT)
    When the "KZ" document is posted , the cheque no. should be captured in "Reference" field automatically.
    Now if you check "Reference" field is blank in case of "KZ" documents. (if available then that document is modified afterwards) This helps for Bank Reconciliation.
    We have applied some user exits for a field of Check number in FBL1N. Now they need the check number in the reference field automatically in FS10N and FBL3N.
    Please suggest.
    Jk

    hi,
    Define a Background job for program RFCHKU00 with daily run option.
    First create a selection screen varient for the above said program.
    Then define the job using that varient. (While creating varient choose target field as Reference.
    set the run time as end of the day time like 23.00hrs.
    So automatically your payment document will be updated automatically with check no in reference field.
    This info might help you out.
    Thanks,
    Srinu

  • Check double invoice with GL account and Reference field

    Dear SAP GURU's,
    I am very new to SDN. I have one query.
    I know we have the option of control double invoice against Vendor/Customer by using reference field. But here my client is asking that control has to be from GL account and reference field, becoz some times he will receive the shipping bills 3 or 4 times agianst one billing document ( i am booking Transporter Vendor invoice by using FB60) with same bill number but expense GL's will be different most of the times. Some times knowingly or unknowingly same GL Expenditure account will be repeated with the same shipping bill number. This was happend most of the times.
    So can i know how can i get the GL account and Reference field checking and error message for the same.
    Thanks & Regards,
    Shobha.

    Dear Shobha,
    I feel that having a check on GL is not a good idea.  If your client insists you can go for an exit or BTE. 
    We used BTE to have the same functionality of Logistics for FI documents also in our office.
    Duplicate Invoice check process documentation is given below for your ready reference --
    with Regards
    Check Flag for Double Invoices or Credit Memos
    Indicator which means that incoming invoices and credit memos are checked for double entries at the time of entry.
    Use
    Checking Logistics documents
    Firstly, the system checks whether the invoice documents have already been entered in the Logistics invoice verification; the system checks invoices that are incorrect, or invoices that were entered for invoice verification in the background.
    Checking FI documents
    The system then checks whether there are FI or Accounting documents that were created with the original invoice verification or the Logistics verification, and where the relevant criteria are the same.
    Checking Logistics documents
    In checking for duplicate invoices, the system compares the following characteristics by default:
    Vendor
    Currency
    Company code
    Gross amount of the invoice
    Reference document number
    Invoice document date
    If all of these characteristics are the same, the system issues a message that you can customize.
    When you enter credit memos or subsequent adjustments, the system does not check for duplicate invoices.
    Exception: Country-specific solution for Argentina, where invoices and credit memos are checked for duplicate documents.
    No message is issued if you enter a document that has previously been reversed.
    Dependencies
    The system only checks for duplicate invoices in Materials Management if you enter the reference document number upon entering the invoice.
    In Customizing for the Logistics invoice verification, you can specify that the following characteristics should not be checked:
    Reference document number
    Invoice document date
    Company code
    This means that you can increase the likelihood that the system will find a duplicate invoice, because you can reduce the number of characteristics checked.
    Example
    The following document has already been entered and posted:
    Reference document number: 333
    Invoice date: 04/28/00
    Gross invoice amount: 100.00
    Currency: EUR
    Vendor: Spencer
    Company code: Munich
    You have made the following settings in Customizing:
    The field "Reference document number" and "Company code" are deselected, which means that these characteristics will not be checked.
    Now you enter the following document:
    Reference document number: 334
    Invoice date: 04/28/00
    Gross invoice amount: 100.00
    Currency: EUR
    Vendor: Spencer
    Company code: Berlin
    Result
    Because you entered a reference document when you entered the invoice, the system checks for duplicate invoices.
    The reference document number and the company code are different from the invoice entered earlier, but these characteristics are not checked due to the settings you have made in Customizing.
    All other characteristics are the same. As a result, the system issues a message that a duplicate entry has been made.
    If the "Reference document number" had been selected in Customizing, the system would have checked the document and discovered that it was different from the invoice entered earlier, so it would not have issued a message.
    Checking FI documents
    Depending on the entry in the field "Reference", one of the following checks is carried out:
    1. If a reference number was specified in the sequential invoice/credit memo, the system checks whether an invoice/credit memo has been posted where all the following attributes agree:
    Company code
    Vendor
    Currency
    Document date
    Reference number
    2. If no reference number was specified in the sequential invoice/credit memo, the system checks whether an invoice/credit memo has been posted where all the following attributes agree:
    Company code
    Vendor
    Currency
    Document date
    Amount in document currency

  • Refference field with SO number in accounting doc. in FB03

    Hello!
    Does anybody know if it is possible to display in FB03 in accounting document a refference field with sales order number?
    Can parameter AUN be used for this purpose? If so, how can it be set up?
    Thank you in advance for every help,
    Sylwia.

    Hi Sylwia,
    What you could do is to talk with you Sales & Distribution folks. They could set up a copy control strategy that drives transfer of information from Sales order to billing and/or from delivery to billing (Tcode: VTFL). Either the header reference field or the allocation field (Assignment field at line item) can be set up to capture the sales order number when the financial document is released to accounting.
    Hope this helps, if it does please grant points.
    Thanks,
    GG

  • Reference field while extending Order Object with custom fields using EEWB

    Hi,
      I am using EEWB to extend Order. i have to add Quantity fields, while generation it gives the following error:
    Diagnosis:
    You must specify reference tables and reference fields for fields containing amount or quantity data. You have specified either only the reference field or the reference table and have not maintenance either ready.
    Procedure:
    Add the missing entry. You can do this with the single field maintenance function of the table.
    Can someone explain what will I need to do? Is its a something outside EEWB which I would need to do.
    Thanks,
    SG.

    Hi
    check the item category table CRMD_ORDERADM_I (Item data) for necessary fields there u can find that
    Item No
    Item Number in Document
    NUMBER_INT
    Product ID
    Product Name Entered
    ORDERED_PROD
    Quantity
    Unit of Measure
    PROCESS_QTY_UNIT
    Unit
    CRM Schedule Line Quantity
    QUANTITY
    Hope it helps u
    Regards
    Manohar

Maybe you are looking for