PO-header text(urgent)

Hi all,
I had written the report program to update the heder text of PO.It is working fine but my problem is when i give the new text it gets replacing with old text,but the new text should have to append with old next.The following is the code for which i had done.What modifications i have to do to append new text and old text.
data : i_poheader like BAPIMEPOHEADER occurs 0 with header line.
data : i_poheaderx like BAPIMEPOHEADERX occurs 0 with header line.
data : i_result like BAPIMEPOHEADER occurs 0 with header line.
data : po_num(15) type n value '4500008083'.
DATA : t_text TYPE STANDARD TABLE OF bapimepotext.
DATA : wa_text TYPE bapimepotext.
data return like BAPIRET2 occurs 0 with header line.
parameter v_text(100) type c.
  wa_text-po_number = '4500008083'.
  wa_text-text_id   = 'F02'.
  wa_text-text_form = '*'.
  wa_text-text_line = v_text.
  APPEND wa_text TO t_text.
  CLEAR wa_text.
CALL FUNCTION 'CREATE_TEXT'
  EXPORTINg
    fid               = 'F02'
    flanguage         =  sy-langu
    fname             = 'Append'
    fobject           = 'EKKO'
   SAVE_DIRECT       = 'X'
   FFORMAT           = '*'
  tables
    flines            = t_text.
CALL FUNCTION 'BAPI_PO_CHANGE'
  EXPORTING
    purchaseorder                = '4500008083'
TABLES
   return                       = return
   POTEXTHEADER      = t_text.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
loop at return.
   write : return-message.
   endloop.

This will sovle ur problem
select * into corresponding fields of table itab_stxh from stxh where
tdname = po.
loop at itab_stxh.
CALL FUNCTION 'READ_TEXT'
  EXPORTING
  CLIENT                        = SY-MANDT
    id                            = itab_stxh-tdid
    language                      = sy-langu
    name                          = itab_stxh-tdname
    object                        = itab_stxh-tdobject
  ARCHIVE_HANDLE                = 0
  LOCAL_CAT                     = ' '
IMPORTING
  HEADER                        =
  tables
    lines                         = wa_text
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 <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
loop at wa_text.
MOVE wa_TEXT-TDLINE TO IT_text-TDLINE .
move itab_stxh-tdid to it_text-tdid.
APPEND IT_text .
endloop.
break-point.
write : / itab_stxh-tdid, itab_stxh-tdobject.
endloop.
loop at it_text.
write : / it_text-tdid, it_text-tdline.
endloop.

Similar Messages

  • URGENT HELP *** Need to load BOM Header TEXT

    Hello Experts,
    How can i load BOM Header text using LSMW
    Thanks
    S

    Two ways to upload:
    1. Via FM: SAVE_TEXT
    2. Create a recording to add text for BOM Header and Use accordingly.
    Regards
    Eswar

  • How to populate the Ser Entry ext key into the Doc Head text in ML81N Txn??

    Hello all,
    My requirement is to to populate the Service Entry external key into the Document Header text.
    ( ServiceEntry - ERS Invoice (MRRL) ). through ML81N Transaction.I have checked for exits in ML81N as well as MIRO. those doesn't seem very convincing.
    IF i see the field of Document header text where i need to populate the data it is
    ( BKPF-BKTXT ) how do i populate the data ( SE external field ) which is in ESSR table..?
    if any one has some piece of code please send it across.
    this is urgent pls help...........
    Any pointers for this would be highly appreciated.
    Thanks,
    Sreekanth...

    Please close this thread.Open new thread in forum [SAP Community Network Forums » ABAP Development » ABAP, General |;

  • FM to display full header text in a pop up window

    1 . I have a ALV report which displays first line of a headr text for a perticular sales doc.
    if i click on a header text  i should see the complete header text for that particular sales doc. in a pop up window.
    is there any FM to do so .
    please repond quickly . its urgent
    i will award full points to all attempters.

    Hi,
    For your reference-
    Re: How to create POPUP windows (from ALV report)
    You can have a look at a standard program where pop-up functionality is used.
    BCALV_GRID_AND_POPUP
    <b>Reward Points if Helpful!!</b>

  • Header Text in Sales Order

    Hi Experts,
    I have problem when i am creating the sales order i want to put some text in the Header Data.
    But when i navigate through the menu go to--> Header --> Text, the moment i select that it is giving ABAP short Dup with errors "Exception condition "CNTL_ERROR" raised." , do you any one know how to fix this??
    It is urgent can any one give a idea?
    Regards,
    Veer
    Edited by: Sundar Ayyagari on Apr 18, 2008 3:27 PM

    Hello Nikhilesh shenoy,
    This is the original error i am getting we are using currently 4.6C i have checked all the OSS notes you have mentioned and the code as well it is already implemented. Still i am facing this problem can you suggest any more help on this.
    If i navigate through the Go To-- > Header ---> Text then there is a dump is any idea what all i need to check?
    Error Message
    A RAISE statement in the program "SAPLOLEA " raised the exception
    condition "CNTL_ERROR".
    Since the exception was not intercepted by a superior program
    in the hierarchy, processing was terminated.
    Short description of exception condition:
    For detailed documentation of the exception condition, use
    Transaction SE37 (Function Library). You can take the called
    function module from the display of active calls.
    The termination occurred in the ABAP/4 program "SAPLOLEA " in
    "AC_SYSTEM_FLUSH".
    The main program was "SAPMV45A ".
    The termination occurred in line 27
    of the source code of program "LOLEAU02 " (when calling the editor 270).
    Thanks
    Sundar

  • How to change "Details" column header text in AdvanceTable in AdvancedTable

    Hi All,
    i am using adavanced table in advanced table in OAF page to show the master and details ,
    my requirement is to change the header text of "Details" to some other meaning ful text .
    "Details' column will be visible at runtime ,no we cant change using process request ,
    Please help me on this ,its urgent
    Thanks & Regards
    Maheswara Raju

    You can get the handle to the Detail column by using the following:
    UINode d = outerTable.getDetail();
    However, as per OAF developer guide, it is not possible to change the label for the detail column. The devloper guide has the following:
    "In accordance with BLAF guidelines, the Detail column header text for the detail disclosure column and the Show/Hide link texts within the cells of the detail disclosure column can not be modified."
    Cheers,
    Saurabh

  • Header Text of Invoice

    Hi All,
    I need to retireve the Header text of Sales orders.
    I am able to fetch the Text using READ_TEXT  Function module with proper import parameters.
    My requirement is to display such header texts against each sales order. If a particular sales order is not having any header texts, the ALV report should display blank column.
    But now, if a sales Order is not maintained with header text, the report is displaying the Function Module's error.
    How to avoid Function Module's error in such scenarios...???
    Its very much urgent.......... Your help is sinceerely apprciated....
    Regards
    Pavan

    Hi Pavan,
    normaly your can catch the error by check the  field sy-subrc after function call. You must activate the Exeptions if you call the function. After returning from the FM you check the field sy-subrc <> 0. In this case you clear the ALV-Grid field in the other case you fill the header text in the ALV-Grid field.
    Regards
    Dirk

  • Re:ALV Header Text

    Hi,
    i am using Reuse_alv_grid_display FM to display the output.I want my header-text in the following format.
                                     STORAGE LOCATION      
    Mat no                            L1      L2      L3                    Total Quantity.
    i am giving in the fieldcatalog 4 fields Mat no, L1,L2,L3,,Quantity as seltext_m.
    How can i give the storage location as text above three storage locations.
    is there any option to display two lines for header text fields.
    Please help me..its urgent.
    Thanks

    Hi,
    you can do this using top of page.
    see the following example.
    DATA : tevents TYPE slis_t_event,
             waevents TYPE slis_alv_event .
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          i_list_type     = 0   "simple list
        IMPORTING
          et_events       = tevents.
      READ TABLE tevents INTO waevents
           WITH KEY name = 'TOP_OF_PAGE'.
      IF sy-subrc EQ 0.
        waevents-form = 'PAGEHEADER'.
        MODIFY tevents FROM waevents INDEX sy-tabix.
      ENDIF.
    *&      Form  PAGEHEADER
       To display heading inoutbuy
    FORM pageheader .
      DATA : theader TYPE slis_t_listheader,
             waheader TYPE slis_listheader.
      waheader-typ = 'H'.
      waheader-info = 'Inoutbuy' .
      APPEND waheader TO theader.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary = theader.
    ENDFORM.                    "PAGEHEADER
    Regards,
    Ruchika
    Reward if useful...........

  • 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

  • How to align Hgrid column(messagestyledtext) header text to right justified

    Hi All,
    I have a Hgrid table and i am using five columns in hgrid table.. I need to display column header text right justified. but by default it is left justified.
    Can any one tell me how to do it..
    Its very urgent.. Please help me out..
    Regards,
    Babu

    Use
    OAHGridBean GeneralHgrid=(OAHGridBean)webBean.findChildRecursive("<hgrid item name>");
    GeneralHgrid.prepareForRendering(pageContext);
    DataObjectList tableColumnFormats =GeneralHgrid.getColumnFormats();
    DictionaryData tableColumnFormat = (oracle.cabo.ui.data.DictionaryData)tableColumnFormats.getItem(pageContext.findChildIndex(GeneralHgrid, "<item id of item attached in hgrid column>"));
    tableColumnFormat.put(COLUMN_DATA_FORMAT_KEY, <enter format>);
    see below:
    �� TEXT_FORMAT (textFormat)- column content is Start justified.
    �� NUMBER_FORMAT (numberFormat)- column content is Right justified.
    �� ICON_BUTTON_FORMAT (iconButtonFormat)- column content is center justified.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Reg. Validation on Header text in Purchase Order Transaction

    Hi All,
       As per the requirement we need to validate on header text in PO transaction.
    Can any one let me know if there is way to do using user exit or configuration.
    Please kindly help me. This is urgent.
    Regards
    Anil Kumar K

    Hi
    You can check either user exit or BADI implementations.
    I´d recommend implementing  BADI ME_PROCESS_PO_CUST on the method PROCESS_HEADER.
    Dont forget to reward if helpful.
    Bye
    Gabriel P.

  • Adobe Forms: Printing Header Text - Background as Dark

    Hi,
    We are upgrading our ECC system to Enahncement Pack 5.
    We have Adobe forms for Sales Order, Delivery Notes,... In Border Palatte, we have set 'Solid' as a background fill for our header texts
    After applying patches, Adobe forms started printing header texts background very Dark.We are not able to read the texts. If I view the document in the spool then they are displayed correctly. If I save spool document on the desktop and print it then also output is printed as we want. Only when we print it directly through VA01, VA02 ( directly from SAP ) then it gives this error.
    I removed the background fill then it prints text correctly but then I loose the separation between header and content.
    I will appreciate any help in this regard
    Jitendra Pongurlekar
    Moderator message: wrong forum, please have a look in the forum for "Adobe Interactive Forms".
    Edited by: Thomas Zloch on Mar 4, 2011 10:55 AM

    Hi mrudul,
    as usual in programming, you got different ways to solve the problem. So if you work through the content here on SCN you will find a lot of examples how to decide between different letter heads. The easiest solution (and might be the best) is to pass the necessary data via the interface and do not add any condition in the form itself.
    How to create a dynamic field and all the stuff is very basic knowledge, so I think you do not need any explaination how to do that. If so I refer you to the official documentation provided by SAP.
    If you have some minutes please work through this blog Before You Ask - Just another guide and phrases like "urgent" or "do reply" are just not necessary to get an answer
    ~Florian

  • Header text not getting populated in PO in R/3 from SRM!

    Hi,
    Our requirement is to automatically populate the email ID of the user in the header text once the PO is created in R/3 with reference to Shopping Cart in SRM.
    our scenario is classic.
    So far, we have used the following Badis in our development but seems to be not working.
    1.ME_Process_PO_Cust
    2.BBP_PO_INBOUND_BADI
    Need your inputs to solve this email querry.
    Regards,
    Archit Gandhi
    Edited by: Archit Gandhi on Feb 4, 2011 11:14 AM

    Check "Text Schema" & "Text Mapping" config part under Cross-Application Basic Settings..
    This should help you.. If you need help in configuration let me know..
    Thanks!!
    Bharath

  • Copy of header text

    Hi SAP Gurus,
    Is there any SAP std. possibility, If I entered the text in the Credit memo heder and which get copied into the output of the Invoice list(Credit memo list).
    If yes then please let me know how to configure.
    Thanks & Regards,
    Sachin

    Hi Sachin,
    To map your requirement you have to ask your Abaper to pick up the Text entered in the Header Text field by using Function module "READ_TEXT" (T-code - SE37).
    Firstly go to the Billing document> Header> Text and press the Display log icon available at the bottom where you have entered your Text. It will give you details like ID and Object name against the Text Type where you have entered your text.      
    Then Use T-code - SE37 then select "READ_TEXT" function module and Execute. System will ask you to enter your client code, ID, Language and the Billing document no. along with the Object Name and then execute. System will display the RESULT at the bottom. Ask your ABAPer to pick this data and use the same on Invoice.
    Hope the above meets your requirement.
    REWARD if it helps you!!
    Regards,
    Ajinkya

  • Billing Doc-Header-Texts copy Accounting Doc-Hader Texts?

    Dear gurus,
    I it possible to copy Billing Doc.-header- Text1 to
    Accounting Document>>>>>>"Doc. Header Text" field?

    Hello,
    the SAP note 301077 lists the available userexits in SD/FI interface.
    If, for example, you want to fill a BSEG field of customer line, userexit EXIT_SAPLV60B_002 is the good one.
    Instead if you want to fill a BSEG field of a G/L line, userexit EXIT_SAPLV60B_004 is the good one.
    Best regards,
    Ivano.

Maybe you are looking for

  • Proxy issue in OpenScript Load Testing Protocol(Web/HTTP) during PlayBack

    Hi All, I am new to OATS and I recorded a sample script on OATS for Load Testing protocol(Web/HTTP) in OpenScript but when I Playback it then it is giving the following as the result: "*Invalid response received from proxy server: HTTP/1.1 502 Proxy

  • Why are my browsers (and app store) crashing?

    First, some context. I got my iMac last year around July. It worked well. Upgraded to Mountain Lion and everything seemed ok. Yes there were crashes here and there but they were few and far between. Around November, I noticed that things began to get

  • Lmcfrundll.exe System Error on start-up

    Whenever I start(or re-start) my computer I get lmcfrundll.exe : System Error The program can't start because MSVCR120.dll is missing from your computer. Try reinstalling the program to fix this problem. I don't know what to do. Please help me

  • How to make the row as a hyperlink in Crystal 2008

    Hi, Could you give me advise on how to make the row as a hyperlink and call another report. Thank you in advance. Rose

  • Machine crash when surfing the net

    My computer reboot when working with Safari and after the machine Restart I got the message below, can someone help? Also when doing All zero to free space the disk utility stop responding t around 75% of the bar completed. panic(cpu 0 caller 0x00199