How to copy MIRO header text to account document line item automatically

HI Experts,
I really need your help or advices , my question is as follows, thanks.
After goods receipt , I do invoice verification at t-code MIRO , and it'll produce an account document by system.
at MIRO, I key in the purchasement description on the header text column (INVFO-SGTXT) ,
and after posting , the header text only appear in account document's account payable item ,
it's blank in GR/IR and tax item. 
How to do could let the GR/IR and tax item have the header text too at column BSEG-SGTXT which produced by system?
p.s.
I  have try to use BADI:  AC_DOCUMENT , Method: CHANGE_AFTER_CHECK
and declare  a couple of parameters to check the value,  as follows
DATA: WA_HEADER TYPE ACCHD,
           WA_ITEM TYPE ACC_DOCUMENT-ITEM,
           WA_ITEM_AMOUNTS TYPE ACC_DOCUMENT-ITEM_AMOUNTS.
WA_HEADER = IM_DOCUMENT-HEADER.
WA_ITEM = IM_DOCUMENT-ITEM.
WA_ITEM_AMOUNTS = IM_DOCUMENT-ITEM_AMOUNTS.
but, in the parameters , I don't see any column to access INVFO-SGTXT value.....
Thanks a lot in advanced.
Best Regards,
Yacoa

HI  SAPFICO,
Thanks for your advice,
I  have follow the link , and create an function model named ZSAMPLE_INTERFACE_00001025(copy from SAMPLE_INTERFACE_00001025),
and also run  the  setting  in FIBF....
I write some code in my function , as follows,  but it doesn't work after  I do MIRO
and it's still blank of the account document's line item.
p.s. even make a breakpoint at the function , it doesn't stop and stay at the breakpoint when I execute MIRO, so werid....
FUNCTION ZSAMPLE_INTERFACE_00001025.
""區域介面:
*"  IMPORTING
*"     VALUE(I_BKDF) LIKE  BKDF STRUCTURE  BKDF OPTIONAL
*"  TABLES
*"      T_AUSZ1 STRUCTURE  AUSZ1 OPTIONAL
*"      T_AUSZ2 STRUCTURE  AUSZ2 OPTIONAL
*"      T_AUSZ3 STRUCTURE  AUSZ_CLR OPTIONAL
*"      T_BKP1 STRUCTURE  BKP1
*"      T_BKPF STRUCTURE  BKPF
*"      T_BSEC STRUCTURE  BSEC
*"      T_BSED STRUCTURE  BSED
*"      T_BSEG STRUCTURE  BSEG
*"      T_BSET STRUCTURE  BSET
*"      T_BSEU STRUCTURE  BSEU OPTIONAL
DATA: C_SGTXT TYPE BSEG-SGTXT.
IF SY-TCODE = 'MIRO'.
  READ TABLE T_BSEG INDEX 1.
  C_SGTXT = T_BSEG-SGTXT.
  LOOP AT T_BSEG.
    IF T_BSEG-SGTXT IS INITIAL.
      T_BSEG-SGTXT = C_SGTXT.
      MODIFY T_BSEG.
    ENDIF.
  ENDLOOP.
ENDIF.
ENDFUNCTION.
Edited by: Yacoa Chen on Mar 30, 2011 9:54 AM

Similar Messages

  • Tcode FV50: How to find long text in FI Document line item Before Saving.

    Hi,
    How to find long text in FI Document line item.
    During Parking of the FI document through Tcode FV50 i m giving the some text in the long text not in the text field.
    I would like to validate the Long Text Before Saving in user exit "U300" under  the  "Sunstitution" .
    Please anybody can be help me out where exactly this long text is going to be stored or in which internal table or memory id.
    Please give me the answer as soon as possible .
    Note:- Read_Text function module is not useful. Because Read_text useful after saving document.

    Hi Amit,
    In application area FINANCIAL ACCOUNTING , go for node LINE ITEM. Here create a step & maintain the prerequisite as per your requirement & in the check you can mention the code or you can direct it to a custom program like ZFI_RGGBR000.
    Here while maintaining the check you will get structures BKPF & BSEG in which you will get the desired field you are looking for.
    Just try to explore in your system how the other validations are maintained.
    After you are done with all your code, you have to run the regeneration program RGUGBR00.
    Here utmost care should be taken while running regeneration program, you should select all the checkboxes in the selection screen except  GENERATE SETS, GEN SUBSTN ROUTNS IN ALL CLNTS  & TRACE PROG. GENERATE CALLS .
    Hope this make your doubt clear.
    Regards
    Abhii

  • SD - Accounting document line items are generating for each item

    Hi all of you,
    We have done account determination for SD. Accounting documents are also generating, but with in the invoice accounting document, number of line items are generating for each item with in the sales order, standard invoice type is F2 like -
    Item 001 - X Material
    Item 002 - Y Material
    Item 003 - Z Material
    The accounting document is -
    Line Item 001 - Customer Ac Dr
    Line Item 002 - Discount A/c Dr
    Line Item 003 - Sales revenue
    Line Item 004 - Discount A/c Dr
    Line Item 005 - Sales Revenue
    Line Item 006 - Discount A/c Dr
    Line Item 007 - Sales revenue
    Line Item 008 - VAT
    Even, in my experience I did not find this type of entry and the sales revenue and discount accounts are same with in the COA and is posted with in the plant.
    Please give me your valuable suggestion to rectify the above issue.
    Regards,
    Ramki
    Edited by: Ramki on Nov 5, 2009 10:06 AM

    Dear Ramki,
    This is SAP Standard. System generates Accounting document line item for each Line items in Invoice.
    This is standard & also required bacuase say you have different Material types in single Invoice (e.g.Material & Service items, Trading Goods, etc). The valuation class assigned to these Material Types may be different & you might want to post revenues from these Line items in different GL Accounts.
    Hope this helps. .
    Thanks,
    Jignesh mehta

  • SD document line items Vs FICA accounting document line items

    Hello All,
    What is the interface we use in SAP,  between the SD and FICA which will determine line items in FICA document with regard to SD line items.
    SD : How we do configuration or mapping between sd sales order and billing document to determine billing document line items  based on sales order line items ( for example : material group, profit center, cost center ?)
    FICA: what interface / Configuration we use to determine how many line items should appear in the FICA document based on billing document line items.
    Regards,
    John.

    Integeration of SD to FICA is based on the img settings done under the node - SPRO - Financial accounting ( new ) - Contract accounts receivable and payable - integration - Sales and distribution .
    Creation of FICA document based on SD is routed through the event 4000 and the details are detrived through event 4030 .
    Would suggest you to go through events 4000 and 4030 .
    Regards ,
    Dewang

  • Text in the document line item

    Hi,
    In COI, I am doing reclassification using document type.
    System has posting the documents correctly, but strange thing is in the document header text, it was giving some text by itself.
    Example of the actual text in the document header is as below:
    "3B586AF9C74AF958DC4EFAB080B180B6D2E90F25"
    Thanks in Advance,
    Richard

    Hi Dan,
    You are correct. The text is coming by itself while doing Reclassification for dividend at PL 30.
    Still confused why it is throwing some text in the document header..
    Regards,
    Richard

  • Changing the length of BSEG-SGTXT (Accounting document line item text)

    Hi ,
             I came across a requirement where my business user wants to add more information (greater than 50 char) to  BSEG-SGTXT field.  It is uncommon and not recommended to change SAP provided data definitions (BSEG-SGTXT) but my business user badly needed this enhancement.   I was wondering any of you come across this kind of situation?  I need your suggestions & valuable input to enhance this field BSEG-SGTXT.
    Thank you for reading this post and I appreciate all your inputs.    
    Kumar.

    Hi
    I recommend not to do this. This BSEG table could have impact on lot of things, even in future uprade too.
    regards
    Srinivas

  • Copying of Header Text

    Hi
    How to Copy the header text that i entered in VF01 to Accounting Document(RV) or in Customer Line Item.(FBL5N)
    URGENT!!!
    Regards
    Subhasish

    Hi,
    Logically speaking a header text cannot be copied into line item text.
    In T.C. VOTX  there is clearcut seggregation of header and line item text.
    The text for line item is maintained in the master data whereas header taxt is applicable to the document type.
    Hope it is helpful.
    Regards

  • Header Text in FI Document

    Hi All,
    In the Accounting Document of Intercompany Invoice (Document Type- V1-Inter-com AP Invoice) ,Header text is getting copied from Header Text of Invoice Documents (Where ever the Text is maintained -for any text type/ID).
    How can we stop flow of Header Text from Invoice to Accounting Document as the Text entered by Delivering Company is featuring in the Accounting Documents of Ordering Company.
    Thanks in Advance.
    Regards,
    Vikas

    Hello Amit,
    you could use the user exit to write the code to populate the information in the accouitng document
    the exit is EXIT_SAPLV60B_001
    through this, the billing document will always carry the value that you want , even if this is created manually also and not through bdc
    Hope this helps
    Thanks
    akasha

  • Transfer document header text from billing document to FI document

    Dear all,
    Where do I specify that the document header text out of the billing document should be transferred to the corresponding FI document?
    Currently, the FI document header text (BKPF-BKTXT) remeans blank after transfer from billing document. We need this field to be filled in, but I haven't found how to have this filled in.
    In copy control from sales doc to billing doc, there is the possibility to transfer the Reference number & Assignment, but nothing about document header texts.
    Some say that it would only be possible via coding, but anybody has any idea if it might be possible via standard SAP?
    Many thanks!
    Best regards

    Hi,
    We also had a bit same requirement, which is to copy the billing header text to FI item text (BSEG-SGTXT). The solution we took is to use FI Substitution (t-code GGB1), so that every time a FI document created from SD... the substitution reads the billing header text and put it in the FI item text. I think the same method could be used for FI header text (BKPF-BKTXT). Below is the solution for your reference.
    Prerequisite:
    Document Type = 'RV' AND Reference <> '' AND
    ( Transaction code = 'VF01' OR Transaction code = 'VF02' OR
    Transaction code = 'VF03' )
    Substitution:
    Using exit which coding is as below.
    *&      Form  u900
          Copy Billing Header Text to SGTXT
         -->P_SGTXT    FI Item Text
    FORM u900 USING p_sgtxt TYPE bseg-sgtxt.
      DATA: lv_name TYPE thead-tdname,
            lt_line TYPE STANDARD TABLE OF tline,
            lw_line TYPE tline.
      lv_name = bkpf-xblnr.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
          id                      = 'Z001'
          language                = sy-langu
          name                    = lv_name
          object                  = 'VBBK'
        TABLES
          lines                   = lt_line[]
        EXCEPTIONS
          id                      = 1
          language                = 2
          name                    = 3
          not_found               = 4
          object                  = 5
          reference_check         = 6
          wrong_access_to_archive = 7
          OTHERS                  = 8.
      IF sy-subrc EQ 0.
        READ TABLE lt_line
          INTO lw_line
          INDEX 1.
      In Billing Header Text, the sign '&' (ampersand) is automatically
      added some characters so it becomes '<(>&<)>'.
      The logic below is to fix that issue.
        REPLACE ALL OCCURRENCES OF '<(>' IN lw_line-tdline WITH space.
        REPLACE ALL OCCURRENCES OF '<)>' IN lw_line-tdline WITH space.
        p_sgtxt = lw_line-tdline.
      ENDIF.
    ENDFORM.
    Regards,
    Teddy Kurniawan

  • How to read long text in Document line item

    Hi,
    How to read long text in FI Document line item.

    Use Read_text function module.
    you need to pass
    ID
    LANGUAGE
    NAME
    OBJECT   to the function moduel
    To find the Text id name language and object these are the following steps. Example: FB02
    1. goto FB02, Enter Document number
    2. from menuselect Goto>Header-->header Text..... New window will be displayed 
    3. select the Header Text. here you can see all the text. 
    4. click on the TEXT (which you want to know the Text id) , then press log ICON (you can find in bottom right of the text window) it looks like a rolled paper. 
    5. in the Next window you will find Text Name. Text ID, Language. etc...
    Regards,
    Lalit Mohan Gupta.

  • Document line item text in Clearing document

    Dear All,
    Document line item text
    My client want the vendor invoice line item text(BSIK-SGTXT) to be captured in the corresponding clearing document line item text field(BSAK-SGTXT).
    (i.e) The vendor invoice and its payment clearing document should have the same text in the document line item text filed.
    According to me i can use  a substition rule and a user exit to assign the values. but here comes a problem* i have one clearing document against 3 to 4 vendor invoice documents* so my programming logic has got stucked here? like which vendor invoice line item text the clearing document should pick up?
    is there any other enhancements possible or can some one help me with the programming logic to be applied here.
    Thank you
    Regards,
    Vasanth D

    like which vendor invoice line item text the clearing document should pick up?
    is there any other enhancements possible or can some one help me with the programming logic to be applied here
    Why don't you discuss the issue with your client?  As you said, if you pay 5 invoices in a single run, the payment document item text can't carry all of those texts unless you use the long text.  What is the reason for the requirement?  Perhaps there's another solution.

  • Remove symbol # for long text in document line item

    Dear Experts,
    I enter some information in the long text field in document line item. For the area that I use "Tab" button, system will display as # symbol. Therefore when we print the information, the output will include the #### symbol which is not correct.
    Please help.
    Thanks.
    -Syaban-

    Dear Gaurav Aggarwal,
    Thanks for the reply, can you guide me the step to perform the suggested solutions? currently, we are using ECC6.
    Thanks.
    syaban

  • Copy of header text to Line item text in MIRO transaction

    Hello Friends,
    I have a requirement where i need to copy the header text ( BSEG-SGTXT) to item text ( EKPO-TXZ01 i.e PO text) during MIRO creation.
    Is there any user exit or BADI .OR is there any other method for doing the same .
    Thanks and Regards !
    Ashish

    Dear,
    Go to se37 MRM_FINAL_CHECK.--display
    then click on that enhance source button ( shift+f4) then go to edit--enhancement operation ---show implicit enhancement option   this is how you can find out the eh=nhancementts .
    Cheers
    fareed

  • Copying header text from Billing document to Accounting document

    Hi
    I have created a new text id in billing document using VOTXN, is it possbile to copy the header text maintained here to an accounting document field -> doc header text or any other text field when the billing document will get posted to accounting.
    Please guide.
    Thanks,
    Vaishnavi

    Hi,
    with a substitution (GGB1) for FI document header (BKPF-BKTXT) it can be possible. A user exit is required in the substitution to read the SD table.
    Regards,
    Joosz

  • How to wrap the heading text in alv.

    HI all,
          I need help, how to wrap the heading text in alv.
    can any help ... plz..
    Advanced Thanks
    Regards
    GUhapriyan

    Hello GuhaPriyan,
    I assume that you're referring to the ALV Grid's title. The maximum length for this title is 70 characters and this would generally fit in the one line.
    Are you intending to wrap it because you purposefully want the text to come in two lines? In that case, I'm not sure that it's possible.
    But otherwise, there's an option in the Layout called SMALLTITLE. You can set this attribute so that the title would be displayed in a amaller font and hopefully, all of your text shows up on the screen.
    Regards,
    Anand Mandalika.

Maybe you are looking for

  • Set link for main image in gallery

    Hi, how do you set link to the main image in the photo gallery? I was able to add photo caption using the spry:detailregion but cannot do use the same method for the main image because Spry won't allow nested div. I saw a thread that talked about cha

  • Soft Buttons not appearing on the 525G (UC520)

    Hi, We have installed a 525G2 on a clients phone system (UC520, Version 15.1(4)M60). The handset is working, in that it can make and receive calls. However there are no soft buttons displaying on the screen. It has been configured with a template for

  • Pie Chart in Reports 9i

    Hi, I am displaying a pie chart in my report. Now the problem I am facing is that the labels are overlapping on the chart, while I want them to be outside of the chart. I tried fiddling with the xml code. Added <Slice labelposition= "LP_OUTSIDE_WITH_

  • Printer Utility says Stopped and failed even though it works other times

    I have the Photosmart C4599. All I did was get a new wireless router. I hooked it up and the printer sees it fine. I did the wireless test and it worked fine. I am on a Mac and the print and Fax under system prefrences sees it fine. When I try and pr

  • BCA 6.5 error message: Label id=215064

    Hello, We are using BCA 6.5 and recently we kept receiving error message "Label id=215064". I couldn't find an answer. Could any one can give me some advises ? Thank You Carole