Substitution for FI document

Hi All,
Our requirement is to replace XREF3 field in BSEG with Vendor name.
So we are trying to implement substitution in OBBH transaction using exit for BSEG-XREF3.
We had copied RGGBS000 into zRGGBS000.
In GET_EXIT_TITLES cretaed one record for EXIT.
  exits-name = 'U907'.
  exits-param = c_exit_param_field.
  exits-title = 'Substitute Vendorname into Reference 3 XREF3'.
  APPEND exits.
Then created a Subroutine in same program with name U907.
Then replaced RGGBS000 with ZRGGBS000  in T80D table.
But now when we tried to assign U907 Exit to BSEG-XREF3 , we donot get this exit in the list. and it's still showing the same RGGBS000 progam name in f4 help of exits.
Please suggest me what else should be done.
Thanks in advance.
Regards
Ravi

Check the "Sources of error" chapter  in [Note 48121 - User Exits in Validations/Substitutions|https://service.sap.com/sap/support/notes/48121].
Regards,
Raymond

Similar Messages

  • Substitution for financial document problem

    Hi all
    I created substitution for completly document and assigned some values for BSEZ-ZFIELD.
    But when user in FB01 in some position enter to this ZFIELD own value then value from substitution not replace his value.
    Is it possible to change this? In another field ZUONR this substition work.
    Thanks for any reply

    Hi, you can Simulate substitution and see what's wrong

  • FI substitution for profit center

    Dear all,
      I have a problem when make a substitution for FI document. The condition is: clear GL acct by FB1S,and when GL acct = 21451000,then get 21451000's profit center to put into GL acct 71/75 item which post automatically. Use OBBH to define substitution and callpoint is 3(complete document).
    Step 001-
    - Prerequisite :
    BKPF-TCODE = 'FB1S'
    - Substitutions:
        field: only exit
        by: U102
    FORM U102 USING BOOL_DATA TYPE GB002_015.
    LOOP AT BOOL_DATA-BSEG INTO BSEG
                           WHERE HKONT = '0021451000'.
      T_PF = BSEG-PRCTR.
      EXIT.
    ENDLOOP.
    LOOP AT BOOL_DATA-BSEG INTO BSEG
                         WHERE HKONT = '0071060022' OR
                               HKONT = '0075060022'.
      BSEG-PRCTR = T_PF.
      MODIFY BOOL_DATA-BSEG FROM BSEG INDEX SY-TABIX.
    ENDLOOP.
    ENDFORM.
    But it still not work...pls help me to check my code or provide your comment...Tks!
    BR
    Regina

    Hi Tsai ,
    put a break-point and find out what values if getting populated in that T_pf.
    or try to use U800.
    *       FORM U102                                                     *
    *       Inserts the sum of the posting into the reference field.      *
    *       This exit can be used in FI for the complete document.        *
    *       The complete data is passed in one parameter.                 *
    Regards
    Prabhu

  • Substitution now working for reversal documents

    Hi,
    I understand that substitution does not work for reversal documents; all attributes in the reversal document are picked up from the original document.
    However is there any way to change this? I want the reversal document to pick up something else. Please note that the attributes fields are all Z fields.
    Thanks & Regards
    Rajesh

    hi Rajesh,
    pls. check the conditions of the substitution, may be reversing is not included.
    ec

  • Substitution for change of document header

    Hi
    I have created a substitution for the change of document header for a company code. I have made it in GGB1 and activated it in the Tcode OBBH.
    However it does not allow me to post the document (Tcode FB01) - I get the syntex error in program 'GBTLEFI0' in include 'GBTLEFIB' in line '1593' - 'The FORM "SUBCON_3ZDEPIND047" does not exist. and the processing is terminated.
    Please provide the solution
    Thanks
    Neeraj

    Hi
    For changing the documents we can use LSMW instead of substitutions.
    Thanks
    Sandesh

  • SUBSTITUTION FOR DOCUMENT TYPE

    Dear Friends,
    I had an requirement of changing the Document type while posting the document.
    The requirement is as follows we have 2 users say user-1,user-2 both are posting a document with doc type SA (number range for doc type SA is 1001 - 2000). Generally the document number generated are doc no.1001,doc no.1002. But our requirement is if User -1 is posting the document, the document number should be 1001 and if a user-2 is posting the document it should generate a new document number say 35001 ( for this client is ok for creation of new document type for number ranges).
    We even checked the same in OBBH and created the same at document header level, we maintained the prerequisite as if company code = xxxx and user name = 1234 and document type = SA, then substitute it with document type (taken from substitutable field) say Z1 (for which document number ranges already maintained).
    It might be possible with USER EXITS and RULES.
    Please guide me.
    Thanks & regards,
    Sandeep

    Dear Milosalvjevic,
    Yes we have even done it.
    But now its solved by changing the standard program and added our requirement after execution of the standard program.
    Done Same thing as BTE works.
    Regards,
    Sandeep

  • BADI for Substitution of billing documents and PGI

    Do we have any BADI for billing documents or PGI ??

    Hi,
    For billing -> Check the includes RV60AFZ* for user exits.
    For PGI -> BADI - MB_DOCUMENT_BADI
    Thanks
    Naren

  • Upgrade fromm 4.6C to ECC 6.0 - Substitution in Acounting Documents

    Hi gurus,
    My client it's upgrading from version 4.6C to ECC 6.0. As far as i know in teh Ecc &.0 verison the substituion of accounting documents are a little bit limited at Complete Document Level. In our 4.6C version we have several substitutions at this level for several document fields, but i've heard that on ECC 6.0 that only possible at document text fields.
    Is that true? How can i solve this? is there any kind of OSS note to fix this?
    Is it any BADI were i can make the substituions that are made on the OBBH in 4.6C?
    Thanks in advance
    Best Regards,
    João Martins

    Hi João Martins
    I've just upgraded my system from 4.6C to ECC 6.00
    There are any particular problem for the FI substituion, only the subistituions at Complete Document Level are available for the posting inside  FI only.
    That means that kind of substituion is not triggered for all postings from other module (SD, MM,....).
    Anyway u can see the OSS note in order to make them available for all module.
    Now I don't remember the number of note, but I can look for it
    Max

  • Creation of substitution for populating field like segment

    Hi Friends,
    It is an  requirement with my client as they have a customized field called Customer Segment Not like SAP standard Segment and they want to populate customer segment in all the records or all the documents posted.
    Luckily, they have only one Customer segment and they want all the documents posted should populate this field by using substitution. I want a help out of you as how do I can write the substitution for this scenario. The customized field is named as YYCSG.
    Regards,
    Shilpa

    Hi,
    Can you please tell me the way to substitute by using VWTYGB01 ? Can you please elaborate this ?
    Regards,
    Shilpa

  • Substitution for Trading Patrner

    Hello All,
    I would like to create the substitution for Trading Partner at G/L Item by following issue:-
    1)     Check some document types  e.g. DR, KR, KZ (Inter-Company)
    2)     Check some G/L Account (excluded 100000 - 1099999)
    3)     Trading partner in G/L Item  should be equal to Trading partner in Vendor/Customer  Item
    For e.g.  If we are posting an entry for document type DR, Customer 1011, trading partner 1010 the trading partner for G/L Item should be 1010 
    Thanks in advance.

    use substitution and create an exit for the mapping of field vbund,
    if the mapping is more extensive, use a mapping table
    A.

  • Profit Center Substitution for Migrated line item

    Dear Expert,
    we migrated the data on feb 2014. past records having the default profit center value in each line item, after the migration we are not using the default profit center , we blocked that through some validation, but some situation, for clearing vendor or customer or gl, the migrated line item having default profit
    center with disabled mode to change. so its throwing the validation error, we cant able to unblock the validation also. we need to write a substitution for this to replace automatically . Eg :
    Default Profit center is : 38000
    it should be replace with to 2038100001
    like wise we have multiple company codes.
    i try to write the prerequisite, herewith i have attached the screen shot, i am getting the error for this, anyone can explain this situation ?
    Regards
    Prince

    Hi
    Please, check these notes
    SAP Note 173798 - User exit for PCA substitution
    SAP Note 1532865 - FAQ: Profit center in the billing document
    SAP Note 150959 - Profit center is incorrect in production order
    SAP Note 530578 - Special stocks in PCA
    SAP Note 594507 - PC with valuated special stock incorrect
    and related notes
    I hope this helps you
    Regards
    Eduardo

  • Font substitution for Times New Roman? Why is Adobe doing this?

    I'm using Adobe Acrobat Pro version 9.2 to read pdfs created by a number of different authors. I'm running Windows 7 64 bit OS. These are NOT pdfs I have created. Some of these pdfs display an incorrect font substitution for Times New Roman and I can't figure out why. In the File/Properties dialog the font property comes up as Times New Roman, True Type, ANSI encoding (Times New Roman has spaces between the words). This font is not embedded. Adobe Sans MM is the font that my Adobe 9.2 substitutes for it, even though I have a true type Times New Roman already installed in Windows.I have installed all updates for both Acrobat and for Windows. If I select the text touch up tool to look at the text, a box comes up saying that the original font is not available and a substitute font will be used. When I look at the drop down box for fonts in Adobe, I see among all of the various fonts available, TimesNewRoman without spaces, but no Times New Roman with spaces. Does this matter?
    When I go to my Windows Control Panel Fonts screen, I see a Times New Roman truetype font available (with spaces, the same as the font the document is requesting). It says OpenType Layout, Digitally Signed, TrueTyepe Outliers. I use it all the time.
    What is required to get Adobe 9 to display this font? It looks like the document is asking for the font I have available on the system and Adobe 9 Pro just isn't identifying it. These same pdfs display just fine on Adobe Acrobat Standard 7.0 on another Windows 7 64 bit OS machine. Is there a separate font library that Adobe has independent of the Windows font library and I simply don't have a complete set of fonts for my version? I don't have the option to have the authors recreate their documents. And they display just fine on an older version of Adobe on a different machine.
    UPDATE: Adobe 9 required more than one update. I did the 300 mb update and the problem described above was still there. I checked again just now for updates, and there was another one. This one, whatever it was, fixed the font substitution problem. So the moral of the story is... update, then update again, and keep doing it until there are no more. Adobe doesn't say "there are xx updates available." You just have to keep on asking for them until it says 'no'.

    The font Radioactive is the problem. It has an incorrect internal name that conflicts with Times New Roman. Delete Radioactive and ban it from any Mac you use.

  • How  we can mention varible substitution for diffrent message payloads

    Hi,
    How  we can mention varible substitution for diffrent message payloads,
    My sceanrio like following,
    According the Outbound idoc message,based on the condition the messages to be split into 9 diffrent files.The sender message may or may not satisfied the condition to one or two messages or  all messages.
    I done the mapping 1:N multimapping in messagemapping & Interface mapping too.
    In reciever file adapter i put the variable substiution like as fallows.
    Variable            Refrence
    Name--            -
    Filename -- payload:message_type_1,1,Segment1,1,Segment2,1,Field_1,1
    <b>How we can mention variable substitution for remaining messages in the same communication channel.my message type names are diffrent for all 9 messagetypes.</b> Any ideas pl forward..,
    When i am testing this scenario,able to processing a one file but the file is not placed in the specified target & gives the follwing error:
    'Conversion configuration error: Unknown structure 'ns1:message_type_2' found in document', probably configuration error in file adapter (XML parser error)'.The file is
    In this case Idoc data satisfied the one message condition only.
    If any ideas & suggestions ..?

    Hi Anjan
    You could always put the "FileName" and "Directory" names into the Dynamic Configuration using a UDF in the map - possibly using a value mapping table to determine the correct values. Then simply reference "%Directory%" and "%FileName%" in the file adapter.  This way you do not have to reference payload variables and you set the names in the map. You will need to tick the box for "use adapter specific message attributes" in the file adapter. you UDF code will look something like
    String dir = "/path";
    String fil = "filename.txt";
    DynamicConfiguration conf = (DynamicConfiguration)container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory");
    conf.put(key,dir);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    conf.put(key,fil);
    - Stephen

  • Substitution for Cost Center

    Dear all,
    I need to use substitution for cost center in some business scenario. Because FI document is automatically created by SD MM side, so cost center maynot be filled in if this account is configured for default accoun assignment in OKB9.
    Now, I want to define a substitution for Cost center field. Such as: if some combination is met, cost center will be filled with A or B ..... (depends on the combination of prerequisites).
    But when I create Substitution, I cannot find field Cost center BSEG-KOSTL in Substitutable fileds Table.
    Do you know how to do it ?
    Thank you very much in advance,
    Best regards,
    Sylvecat.

    Hello!
    See table GB01 for field KOSTL.
    The field EXCLUDE are assigned? If positive that´s should be the cause of your problem.
    Disable this mark to turn field KOSTL able to substitution.
    best regards.

  • Substitution for services

    Colleagues
    We need to create and FI substitution for services in order to apply the cost of them as if the purchase document had Account Assignment Categoryu201DJu201D instead the real u201CFu201D
    For us this mean that the cost will be applied to an account 5XXXXXXX instead of the defined onto the purchase document.
    We havenu2019t been able to this due to into the substitution we cant have  the data of the entry sheet, to identify the replacement account on the T030 table.
    Please let us to know if this is possible.
    Thanks a lo for your help

    Colleagues
    We need to create and FI substitution for services in order to apply the cost of them as if the purchase document had Account Assignment Categoryu201DJu201D instead the real u201CFu201D
    For us this mean that the cost will be applied to an account 5XXXXXXX instead of the defined onto the purchase document.
    We havenu2019t been able to this due to into the substitution we cant have  the data of the entry sheet, to identify the replacement account on the T030 table.
    Please let us to know if this is possible.
    Thanks a lo for your help

Maybe you are looking for