Validation and Subtitution for accounting document (FB01) by EXIT method

hi experts,
  i want to modify the bseg-vbund field while posting in FB01. for this i  need to insert my logic to find out the vbund value and i need to subtitute  the new value for  posting the document.
for this requirement i wriiten my logic in exit U102 ( by copying the program RGGBS000 to ZRGGBS000  and assigned in ( GCX2 transaction ) and uncomment the code for form U102 )
  i created one (OBBH) substitution and selected the 'ONLY EXIT'  option then i saved .but the system througing error as ' EXIT U102 has the incorrect type' .if i remove the type reference in form it is saving but the field is reset to original value while saving and not taking my substitution.
  and i want to change the field BSEG-VBUND which is not in the substitution list is it possible?
   is this is correct or any other method is correct?
   i checked in BTE,user-exits and BADI  which is applicable for FB01 ,i am not getting any suiteable solution.
  please suggest me.

(1) don't duplicate posts Fb01 - enhancement
(2) Look at parameters when filling the EXITS table
  use a C_EXIT_PARAM_NONE parameter under Line Item node.
  Also use a TABLES BSEG declaration and directly udpate the BSEG-VBUND field.
  OR
  put your Step rule under the Complete Document node and update the value in
  a LOOP AT the received parameter.
Regards

Similar Messages

  • Table relations between vbrk and bkpf for  Accounting Document Number

    hello,
    i am using 4 tables to get data into my programs.
    vbrk,vbrp konv and bkpf.
    i want to get belnr from bkpf.i found relation between vbrk and belnr.but in vbrk table belnr's value is initial.
    can anybody tell me that how should i relate vbrk and bkpf or how to get Accounting Document Number(belnr) from bkpf for Billing Document(vbeln).
    regards,
    soniya s.

    hi,
    chekc this. its working for me.
    data : WA_AWKEY LIKE BKPF-AWKEY.
    data :  WA_BELNR LIKE BKPF-BELNR.
    data : LENGTH TYPE I.
    *BREAK MTABAP.
    LENGTH = STRLEN( IT_VBRK-VBELN ).
    if  LENGTH = '10' .
    MOVE it_vbrk-VBELN TO WA_AWKEY.
    SELECT SINGLE BELNR FROM BKPF INTO WA_BELNR
      WHERE AWKEY = WA_AWKEY
      AND AWTYP = 'VBRK'
      and blart = 'RV'.
    it_final-acc_doc = WA_BELNR.
      CLEAR WA_BELNR .
      CLEAR WA_AWKEY .
    else.
    CONCATENATE '0' it_vbrk-vbeln INTO wa_awkey.
    SELECT SINGLE BELNR FROM BKPF INTO WA_BELNR
      WHERE AWKEY = WA_AWKEY
      AND AWTYP = 'VBRK'
      and blart = 'RV'.
    it_final-acc_doc = WA_BELNR .
      CLEAR WA_BELNR .
      CLEAR WA_AWKEY.
    endif.

  • Exit/Badi for Accounting Document

    Dear Friends
    Is there any user exit/BADI for accounting document. My requirement is quite simple which you would also faced in many implimentation. Client wants number ranges business area/plantwise. I was just thinking as plant/business area is a line item field it may be little difficult to have different number range controll at that level, so I thought we could use user id as the import parameter. But these is possible once I get any user exit/badi for number range change. We dont want to create so many document type also.
    Thanks and Regards
    Pankaj Gupta

    Hi Marta,
    Check these notes
    SAP Note 1259505 - FAQ: New cancellation procedure in SD,
    SAP Note 400000 - FAQ: Transaction VF11: Cancellation of SD billing documents
    See with attention note 1259505 question 4. It says
    Most of the userexits in the SD-FI interface (see note 301077) will not be
    performed.
    So, try to do it with BTE's
    Sorry, try with USEREXIT_PRICING_COPY in program RV61AFZA.
    I hope this helps you
    Regards
    Eduardo
    Edited by: E_Hinojosa on Nov 21, 2011 9:15 AM

  • BADI/EXIT for MIGO for accounting  document posting

    Hi
    I am using MIGO where SAP post Mat Document and Accountying document.
    This Uses FM  'MB_POST_GOODS_MOVEMENT  < Include LMIGOKG1>, once this FM executed both MKPF and BKPF data gets filled . I can see tha data for MKPF in debug but I am not able to see data for Accounting Document.Even I cant see the Acc. document no assigned by SAP
    I need to change some fieds for Acc. Document <BSEG-VBUND>
    Can any one help me to find in which structure or table I can get data for Accounting document

    am using the method POST_DOCUMENT,
    am writing the code like..
    sample code..
    DATA: wa_mseg type mseg,
    wa_mch1 type mch1,
    wa_ausp type ausp.
    loop at it_mseg into wa_mseg.
    *select single * from mch1 into wa_mch1 where matnr = wa_mseg-matnr*
                                                               and charg = wa_mseg-charg.
    if sy-subrc is initial.
    *select * from ausp into wa_ausp where objek = wa_mch1-cuonj_bm*
                                                   and klart = '023'.
    if sy-subrc is initial.
    if wa_ausp-atwrt EQ 'ACCEPTED'.
    continue.
    else.
    if wa_ausp-atwrt EQ 'REJECTED'.
    call function 'popup_to_display_text'.
    endif.
    endif.
    endif.
    endif.
    endloop.
    when i debug ,i find no data in the mch1 table ..
    any help..
    thanx

  • BAPI for Accounting Document Posting

    What is the name of BAPI for Accounting Document Posting and how can I run it?

    Hi ,
    Can you send me the code how to use the BAPI_ACC_DOCUMENT_POST.
    Regards,
    L Srikanthan.

  • Table for Accounting Document of Invoice Document

    Dear All,
      We have accounting doc. table of material document as BKPF(HEADER) & BSEG(ITEM).
      In the same way, can any one share, whats the accounting doc table for Invoice/MIRO??
    Regards
    Mahesh
    Re

    Hi Dear
    actually what table you have mentioned in your thread that table is for Accounting document, it doesn't matter whether the accounting document is created during good receipt or Invoice receipt
    hence BKPF and BSEG is accounting table for invoice as well
    Thanks

  • No. range for accounting document

    Hi Friends,
    I want to assign a new no. range for the accounting document. Can you tell how can I do this.
    Regards,
    Wasim.

    Dear Check below transaction for accounting document types and defining number ranges as per document type and period.
    OMBA-Document types
    OBF4-Change document types
    FBN1-define number ranges
    SNRO - Object type number ranges
    Cheers
    KK

  • Change profit center for accounting document on item line

    HI
    I need to change profit center for accounting document on item line, for that purpose I have used user-exit EXIT_SAPLV60B_004, but my new profit center gets latly overwritten in FM CO_DOCUMENT_CHECK (which is called from FM AC_DOCUMENT_CREATE). It gets overwritten from COBL. Is there any way to solve this?

    HI,
    possible reasons are :
    In GR document profit center pulled from PO Material :
    If you have ordered with material code, must check profit center assigned into material by mm03/Plant Data2
    If you have ordered without material code, than check cost center assigned Profit center by 1KE4

  • Formatting size and resolution for PDF documents

    How do I  format size and resolution for PDF documents with Adobe ReaderX

    No way that I know of with just the free Reader.

  • When does incompleteness of foreign trade matters for accounting document?

    Hi,
    When creating billing from an SO without delivery, the accounting document is created even though foreign trade data is incomplete.
    While when creating billing from a delivery, the accounting document is not created since foreign trade data is incomplete.
    My question is, When does incompleteness of foreign trade matters for accounting document?
    Please advice.
    Thanks!

    Hi,
    I donu2019t have an exact answer but I take a guess that, when creating billing from a delivery, the accounting document is not created since foreign trade data is incomplete -  it might be because the necessary information for delivery is not maintained, for instance mode of transport for Foreign Trade, Domestic mode of transport (you can see them in billing doc u2013 header u2013 foreign trade/customs) most of the data maintained in material master.
    Whereas for order related billing, these data might not be necessary as it has no delivery.
    Note: This is just a guess.
    Also take a look at the below link. It might be useful for you.
    Re: foreign data incomplete appearing after deactivating
    Good luck
    Sats.

  • Tried Hard but unable to authorize as it ask again and again for account details...any solution

    Tried Hard but unable to authorize as it ask again and again for account details...any solution

    not sure if you found a solution, but i am currently having a problem with playing "street fighting man" on beggars banquet. i'm continuously being asked to authorize my computer, and when i do, the song doesn't play and i'm still asked to authorize my computer.
    i have followed the steps described in the apple support page "itunes repeatedly prompts to authorize computer to play itunes store purchases" and none of them worked.  i have a PC- windows 7 and the current itunes 10.6.
    on my itunes email receipt there is a link "report a problem" and i went through the series of forms and dialog boxes to report a problem. under account, purchase history, one can report a problem of a purchase.

  • HT204053 Can I see Excel and Word for Mac documents on icloud?

    Can I see Excel and Word for Mac documents on icloud?

    No, I already have Microsoft Office for Mac on my macbook and on my imac.  I want to share the documents from one (imac) to the other through Icloud.   But it doesn't show them as an option.   How do you share documents on one computer to the other within the same house?  

  • Restrict display and posting for specific document types

    Hi,
    Is it possible to restrict display and posting for specific document types? I want to restrict authorization to SM document type in FS10N, and KSB1 tcode. Please help
    Best Regards,
    KIRAN.

    Sandipan Choudhury wrote:
    FS10N checks for this object ("Check" in Su24) but when user doesnot has this authorization object he gets access to all doc types and when the user is restricted to specific doc types (object present in user's authorization) he will get access to only those doc types. This is how the authorization check for F_BKPF_BLA works, in other words this authorization is Optional.
    Sorry, but this is not true and seems to be an invention of how you would like it to work...
    The coding works like this (generally):
        if sy-subrc ne 0.
          select single * from  t003 where blart = postab-blart.
          check sy-subrc = 0.
          blrtab-blart = t003-blart.
          blrtab-brgru = t003-brgru.
          append blrtab.
        endif.
        if blrtab-brgru ne space.    "<--- important condition!!
          authority-check object 'F_BKPF_BLA'
               id 'BRGRU' field blrtab-brgru
               id 'ACTVT' field actvt.
          if sy-subrc ne 0.
            rcode = 4.
          endif.
        endif.
      endif. 
    The "optional" aspect is whether or not the document type has an auth group on it in T003, failing which the check is suppressed.
    If it reaches the check, then it found something and then checks that selected value.
    Moral of the story:
    --> Do not believe SU53.
    --> Do not make assumptions from ST01 traces.
    --> Read the documentation carefully.
    --> Read the code to see how it really works (you can jump to the coding location from the trace).
    Cheers,
    Julius

  • Validation Rule for Accounting Document type

    Hello Experts
       I have an requirement  to block certain accounting doc type to get vendor line item post in that. For that I tried to block direct through OBA7 but not be able to also can't delete number range as it is shared by another doc type. My last option is Validation rule but i never work on this ,so any suggest how to create validation rule " To Block Accounting Doc type SO THAT THERE WILL NOT BE ANY line item posting occur in that doc type.
    Regards.

    ok sure.  OB28 callpoint 1.  Create a step under this callpoint.
    1)  Prerequisite is as follows:  note XXXX is your company code and ZZ is your doc type.
    BKPF-BUKRS = 'XXXX' AND
    BKPF-BLART = 'ZZ'
    2)  Then you need to enter the check.  Here you can just put FALSE.
    3)  The last part is to create your message.  Message type E so they get an error and then create a message number in the class that you choose and give it a description:
    Document Type 'ZZ' is not allowed
    Save it and wah lah! 
    Let me know how it goes.
    Thanks,
    Jes

  • Why does my app store account tell me that my payment method does not match my bank's records. my card is valid and works for iTunes but not the app store.

    While trying to change my Credit Card info: The app store tells me that my payment method information does not match my bank records and to try again or enter a new payment method. My CC is valid and its the same CC ive had for a while. This CC info works for iTunes but is not being accepted for the App store.I have changed this info online but cannot change it on my iPhone. Can anyone tell me what i need to do?

    Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
    To contact product and tech support: Contacting Apple for support and service - this includes
    international calling numbers..
    For Mac App Store: Apple - Support - Mac App Store.
    For iTunes: Apple - Support - iTunes.

Maybe you are looking for

  • No signal to external Display/LCD-TV

    I own a Macbook Air 13" (Late 2010) and used to connect it via Mini-Display-Port to HDMI-Cable to my LG 37" LCD TV. While on Snow Leopard everything worked fine. Now I upgraded to Lion and I am not able to get a signal to my TV. The MacBook Air lists

  • Print PDF issues with Reader 11.0.03

    I upgraded to Reader 11.0.03 and can no longer print any .pdf files in Mac OS 10.8.4 I get the print dialog box, but when attempting to print get a pop-up "The document could not be printed" and then "there were no pages selected to print".

  • Memory leak on application undeploy.

    We're creating a Spring-based web app that is using a Tomcat 7.0.33 managed Oracle database pool. We're using the ojdbc6.jar to connect (Oracle 10g but migrating to 11g later). When our application is undeployed in Tomcat we get probable memory leak

  • How to design these containers for info and graphics?

    I am not even sure what this is called, it is a combination of CSS and html, a simple container for information and graphics like seen on this page: http://www.adobe.com/cfusion/labs/search.cfm?loc=en_us&term=spry&search= with the header "Search Adob

  • Change language settings for ipod

    I just bought an 80GB iPod and accidentally press the wrong language selection on the screen of the ipod and now it only displays japanese or something! I mean I can't even tell what it is, can you please help me? I am getting frustrated!