Reference Field should be populate when document entered ......

Hi Experts,
    As per the customer requirement , he want when he tried to enter document in FB60, the Reference Field (BKPF - XBLNR) should be automatically populate with the following format:-
  YYYYAMMDD0001
The information should
be the following
YYYY : Year of the document entered (BKPF-BLDAT)
A: The value is always = A
MM: Month of document entered (BKPF-BLDAT)
DD: Day of document entered (BKPF-BLDAT)
0001: This has to be a counter of the documents entered per day and per vendor.
what should i do in this requirement............ please help me.......?
Thanks & Regards
Rajesh

Hi Rajesh,
I completely missed that part
I assume that this requirement is only for a particular document type.
If yes, for Counter, again you Need to write your own logic.
e.g. for the entry date, go to BKPF with co. code, year of the entry date, Document type = XX and entry date and fetch all the posted documents.
With the document list, go to BSEG and sort the documents per vendor so that you can Count the number. Add 1 to the number of such documents posted (you can filter the list using Account key e.g. K for vendor so that only vendor lines are fetched).
The only things which strike me now is that probably the substitution will not work at Header Level as Vendor Information Comes only when you start entering the line item Details. so you might Need to write the Substitution at complete document Level.
BR
Amitash

Similar Messages

  • I install windows 7 on my mac pro. and participate in windows 7 to 50gb 2 disk. but now i cannot enter my mac. only windows is appearing what should i do. when try enter my mac want me to format rest of disk. how can i reinstall my mac

    i install windows 7 on my mac pro. and participate in windows 7 to 50gb 2 disk. but now i cannot enter my mac. only windows is appearing what should i do. when try enter my mac want me to format rest of the disk. how can i reinstall my mac?

    If you use Windows program to partition the Hard Drive, the Apple partition gets destroyed.
    Windows does not understand it is a guest on your Mac, and throws garabge wherever it pleases.

  • Functional Location should Auto Populate when installed Equipment is select

    Hi All,
    In our client I have made the Functional location mandatory field during the Notification and Maintenance Order creation.
    When a Work Order or Notification is created with Equipment number then Functional Location is not automatically populated.
    If we create Notification and Order through IH01 then only functional location is coming automatically but I need through IW21 and IW31.
    Can anybody please tell me how I can achieve this functionality?
    Thanks
    KAVS

    Hi,
    The functional location will be automatically populated in IW21/31 when you enter the equipment. However there is a problem if you make the functional location field mandatory. In that case the system expects user to fill the functional location field before any logic is executed to set a default. The screen processing, including checks for required fields, is processed first. So an error will be generated asking the user to fill the f/loc field. They will not be able to proceed until the field is filled by user input.
    The solution is to not make the functional location field mandatory. You can then implement exits QQMA0014 (for notifications) and IWO10009 (for orders) to check that functional location field is not empty.
    -Paul

  • How to populate invoice reference field (bseg-rebzg) in accounting document

    Hi,
    I am working on a scenario in which first a billing document and its corresponding accounting document (say A) is generated.
    Then if there ia any correction, we create a credit memo request. From this credit memo request we create a credit note.
    After saving this credit note another accounting document (say B) is created. This new accounting document has "Invoice ref." field blank (BSEG-REBZG). However, I want to display first accouting document's number (i.e. A) in "Invoice ref." field.
    I tried to change the reference number field in user exits (called during credit note creation) but it didn't help and accounting document didn't get created.
    Can anyone please suggest how this can be done?
    Thanks in Advance!!
    Kind Regards,
    Priyanka.

    Hi,
    I really doubt that the number of invoice document get stored here. This is only filling up with "V" in our system for the credit memo accounting document referencing to an invoice document created with reference to billing document.
    Please read the help on this filed.
    In the standard system the field is used for:
    Credit memos which refer to a particular invoice item
    Subsequent invoices for an invoice item
    Partial payments for an invoice item
    Partial clearings of down payments.
    In the first two cases mentioned, the terms of payment are copied from the cross-referenced invoice item into the item currently being processed. This ensures that items due on the same date are paid together by automatic payment.
    A special rule applies to credit memos which have a "V" in this field. The due date is determined in the same way as for an invoice. If the field is empty (containing neither a document number nor a "V") the due date is the baseline date for payment.
    Regards,
    Ravi

  • Field should not display when it is null

    Hi,
    I am creating a xml report,I dont want to display row when its value is 0.
    eg column1 column2 column3 column4 column4
    1 ABC BCA 0 0 0
    2 XYZ YXZ 0 1 0
    So if 1 is not having any value then that row should not display,it should dispaly only row with values as in 2.
    Thanks in Advance....

    Instead of <?for-each:G_CF_SUB_SEG_VALUE?>
    use
    <?for-each:G_CF_SUB_SEG_VALUE[TOTAL_CUST_AMT!=0 or TOTAL_CUST_B0!=0 or TOTAL_CUST_B2!=0 or TOTAL_CUST_B3!=0 or TOTAL_CUST_B4!=0 or TOTAL_CUST_B5!=0 or TOTAL_CUST_B6!=0]?>

  • Vendor field should not display when GI is done in MB1A?

    Hi  guys ,
    i have  a  report programe here i am pulling  all the material data  and purhasing order info  in the background using the BADIO MB_DOCUMENT BADI.  here i am writing my logic. this BADI is triggering  once material Documnet is created  in MIGO MB1A,MB1B,MB1C . when i am trying to excute the MIGO tranasaction all the data shoulb be displayed . when I am trying to excute MB1A  Here i dont need one field like Vendor Number ? can  any one please help me on these ?
    Thanks In Advance.

    Instead of <?for-each:G_CF_SUB_SEG_VALUE?>
    use
    <?for-each:G_CF_SUB_SEG_VALUE[TOTAL_CUST_AMT!=0 or TOTAL_CUST_B0!=0 or TOTAL_CUST_B2!=0 or TOTAL_CUST_B3!=0 or TOTAL_CUST_B4!=0 or TOTAL_CUST_B5!=0 or TOTAL_CUST_B6!=0]?>

  • Reference Field to populate automatically when doing manually clearing F-30

    Hi,
    I have a requirement from my client where we have to get the reference field XBLNR to the clearing document from the document it actually clears when doing the manually clearing through F-30.
    Is there any standard SAP note for this.
    Can you please suggest any other way. It should be automatic.
    Thanks,
    Srini

    Hi,
    Sorry you both are thinking in the wrong direction, let me explain by giving an example...
    Open Item         Document Number         Reference Number
    £2500                  3500000253                   ABC125663
    Cleared Item
    £2500                   6500000562                  ABC125663
    My requirement is I want to auto populate the reference number of the cleared item with that of open item.
    That means "ABC125663". I hope I have explained the requirement clearly.
    If you have any answers please let me know.
    Thanks,
    Srini

  • Wat action should be associated when we press enter?

    Hello all,
    i ve a requirement where in, an input field should get activated, when i press the enter key.
    can any of you help me in this regard.
    thanks in advance.
    thanks and regards,
    Santhosh Guptha N

    Hi Santhosh,
    First create a context attribute named InputFieldVisibility.
    Change the type of this attribute to the type com.sap.ide.webdynpro.uielementdefinitions.Visibility
    Now under the layout tab, select your InputField and set the visible property to InputFieldVisibilty
    Create a new action called VisibilityAction() and bind this action to the onEnter property of your InputField.
    Under the implementation tab,
    Inside wdInit(), write the following line of code,
    wdContext.currentContextElement().setInputFieldVisibility(
                   WDVisibility.NONE);
    And inside the onVisibiltyAction(), write the following line of code,
    wdContext.currentContextElement().setInputFieldVisibility(
                   WDVisibility.VISIBLE);
    Regards
    Kishan

  • Reference field value in the F110 Payment document

    Dears
    We are running the automatic payment run for the vendor invoices posted.
    In each vendor invoice, we have filled the reference field, text field, etc.  However, while running the payment in F110, the system does not reproduce this reference field value in the payment document.  Hence we are not able to match the items for comparison.
    Have we left out any setting in FBZP or somewhere ?

    Hello,
    Apart from above suggestions, you can check linked invoices to payment document through below option.
    Open payment document in FB03, go to Menu->Environment->Payment usage
    This will list all invoices cleared through that payment document.
    If you are looking for tables, Pass payment document number , company code, year, account type and account to AGKO table and get the clearing date. Pass these details to BSAK and get list of cleared documents.
    AUGDT = Clearing date from AGKO
    AUGBL= Clearing document from AGKO
    and other details passed earlier.
    Hope this helps.
    Thanks,
    V V

  • Reference field-xblnr

    Hi Friends,
    In FI, Invoice document is generated with doc type RV. When invoice is done for a service order the system is copying the “invoice number” in reference field[bkpf-xblnr] of the RV document. However, when invoice is done for a delivery related order the system is copying the “Purchase order number” in reference field[bkpf-xblnr] of the RV document.
    The requirement is that ‘Reference’ field should always get updated with the “invoice number”.
    How does Sap populate the ‘reference’ field. Why and how  is it picking up different values for different billing types?
    Is there any config in spro where we can mention which field has to be picked up in reference field?
    Is there any other oss note or exit in this regard?
    Thanks & Regards
    Ajay
    SAP Practice FI,CO

    Hi Ajay,
    Check the settings in VTFA thoroghly....based on billing type copy control will be set.
    That could be reason.
    Best Regards,
    Velumani

  • 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

  • Mandatory field - Header text and Reference field  for company code

    Hi
    In transaction code FB60, I want to make header text and reference field mandatory at the company code level.
    For one company code , the header text and the reference field should be made mandatory but for the other 8 company codes , those fields should not be mandatory.
    if I make the fields mandatory via the document type , then it will be applicable for all the company codes using the document type.
    thanks in advance
    Kind regards
    sap student

    Hi Chintan
    I have written the validation rule and it is working fine.
    Thanks
    kind regards
    sap student

  • Double posting - Vendor Reference field

    Hello,
    As you know SAP standard is checking the following fields to identify if an invoice is duplicated:
    Company code
    Vendor number
    Currency
    Reference number
    Amount in document currency
    Document date
    I want to change the warning message that SAP shows when using the same Reference when posting (FB60) for an error message.
    Which is the best way:
    -Function module to check Reference field
    -Add a substitution for document type (vendor invoice)
    -Or another suggestion....
    Thanks for your help
    REgards

    Hi. Why do you need set? If you're going to check for all vendors, then just put if account type=K, then user exit, where you check if current reference field exist in bseg (or you can improve logic, eg check reference only for current vendor etc)

  • How to reference field make active for manual entry

    Hi all
    I want to insert reference in a reference field of header of billing document which has to be seen in accounting documrnt.
    can any one help me how to remove gray reference or an assignment field in header of sales billing document .

    Hi,
    This can be configured in the below mentioned t code:
    VTFL - Delivery to Billing
    VTFA - Order to billing
    VTFF - Billing to billing
    You can specify any of the following as reference
    A Purchase order number
    B Sales order number
    C Delivery number
    D External delivery number
    E Current billing document number
    F External delivery no. if available, otherwise delivery no.
    For this you have to maintain the Reference field in the above T Codes... At Header Level of the copy control.
    Hope this will help you to resolve your issue.
    Regards,
    KrishnaO

  • Bank Reference Field

    Good Day
    I want to change the vendor master data and maintain the reference
    details for a vendor/customer. And I would like to know the following :
    1. What is the function of the reference field.
    2. When I maintain the reference field will the reference appear on
    the vendor/customer bank statement
    3. Do I need to do anymore extra customising or config to ensure that
    this reference appear on the vendor/customer bank statement.
    Your speedy response will be appreciated.
    Kindest Regards
    Ropetra.

    Hi,
    Modification of internal SAP object could be problematic. You are not advised to modify the length of the fields. However, if you are confident in what you are doing, you can modify data element via SE80 transaction. ABAPer would know what to do...
    Regards,
    Eli

Maybe you are looking for

  • Not able to pass the BEx date prompts from liveoffice

    Dear Team , Environment : BI 4.1 SP3 ,Dashboards 4.1 Sp3 and Live office 4.1 SP3 . Bex query has date range variable ,we built dashboard with Live office .Issue is we are failing to pass date variables from dashboard .To pass 1- March -2015 , We trie

  • How can I change the ToolTip bg and fg colors?

    hi, I have a JTree, and I want to display a textual description for each node as a tooltip. I want the tooltip to appear with a certain bgcolor, and fgcolor. I have a CustomCellRenderer extending DefaultTreeCellRenderer with getTreeCellRendererCompon

  • Explain plan for query with variables

    Trying to Explain plan for some sql in sql*plus. The query has a variable in it. How do I do this ? I did look into explain plan and dbms_xplan but could not find anything with variables

  • How to overwrite message which is in AdfDhtmlLookAndFeel._TRANSLATIONS

    Hi, I have observed that few messages are displaying on UI which are matching with messages defined in the file AdfTranslations-11.1.1.5.0-1095en.js Is it possible to overwrite any specific message which is defined in this file?

  • Problem after selection  screen -reg

    Hi all My program is not getting executed after giving the selection screen options. can anybody suggest me what could be the problem was. Here is my script. REPORT  ZVS_SELECT_FLIGHT                       . tables: SFLIGHT. TYPES: BEGIN OF TY_SFLIGH