Prin preview of item text before saving PO

Hello,
when I create a PO I can use the print preview of the PO before actually creating/saving the PO. However if I do this I can't see the item text. The item text is only visible in the print preview after the PO is saved.
Do you know if it is possible to change this so I can see the item text before saving in teh print preview?
Thanks
Sofia

You need to take ABAPer help and see the Print pre-view parameters maintained for the Script/Smartform for the PO Output Type you are using..
If possible try to include the Item text into those parameters..
As far as I know only for MEDRUCK script, we can see the print pre-view..

Similar Messages

  • Read header text before saving delivery during creation

    Dear All,
    Could you please suggest, how to read the header text before saving the delivery during creation.
    Regards,

    I dont think you can do it before saving the delivery but you can after saving the delivery.
    Check out the program MV50AFZ1 - There are two user exits "userexit_save_document" and "userexit_save_document_prepare" .
    To read the text (as far as i know), you will need the document number (user READ_TEXT function module).
    Document number is not available in user exit  "userexit_save_document_prepare" but it is available in "userexit_save_document" .
    I dont know what is your requirement but you can choose from the above options. You can read the text from save_document user exit but the delivery was already saved.
    good luck

  • Display PO item text before save

    Need to display item text of Purchase Order in print preview before the PO is saved.
    How do I achieve this.
    When PO is saved Iable to get the Item text using FM : Read_Text.
    I have searched the thread mentioned solutions donot satisfy my requirement.

    Hi,
    Use the following sample code in ME_PROCESS_PO_CUST (BADI). for me it is working
      TYPES: BEGIN OF IT1," occurs 0 with header line,
              WORD1 TYPE C LENGTH 10 ,
              WORD2 TYPE C LENGTH 5,
             END OF IT1.
      DATA: IT2 TYPE IT1 ."occurs 0 with header line.
           IT2-WORD1 = '          '.
          IT2-WORD2 = ITM_DATA-EBELP.
          ST1 = IT2.
          TDNAME = ST1.
          OBJECT = 'EKPO'.
          ID = 'F01'.
          EN = 'EN'.
          CALL FUNCTION 'READ_TEXT'
            EXPORTING
              CLIENT                  = SY-MANDT
              ID                      = ID
              LANGUAGE                = EN
              NAME                    = TDNAME "' 00010' "TDNAME
              OBJECT                  = OBJECT
            TABLES
              LINES                   = LINES1
            EXCEPTIONS
              ID                      = 1
              LANGUAGE                = 2
              NAME                    = 3
              NOT_FOUND               = 4
              OBJECT                  = 5
              REFERENCE_CHECK         = 6
              WRONG_ACCESS_TO_ARCHIVE = 7
              OTHERS                  = 8.
    regards,
    sathis

  • ME32K: read text before saving

    Hi everybody,
    I have checked some threads that I think could help me with my problem but I have no luck. My be somebody can help me...
    I need to check a specific header text at ME32K transaction before saving. If the user complete it everything is ok, if not an error message appears. I solved this with an exit, but the problem is that the text is not saved at this point, I need to get it from memory and I'm not solving this point.
    Do you have any ide to solve this?
    Kind regards!

    Uhm ok
    That exit is developed for PO, so I've inserted my code in that exit:
    DATA: L_NAME TYPE THEAD-TDNAME.
      DATA: TLINES TYPE STANDARD TABLE OF TLINE.
      MOVE I_EKKO-EBELN TO L_NAME.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
    *     CLIENT                        = SY-MANDT
          ID                            = 'K01'
          LANGUAGE                      = 'I'
          NAME                          = L_NAME
          OBJECT                        = 'EKKO'
    *     ARCHIVE_HANDLE                = 0
    *     LOCAL_CAT                     = ' '
    *   IMPORTING
    *     HEADER                        =
        TABLES
          LINES                         = TLINES
    *   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.
    Now I'm go to the header text, do a modification to the text ID K01 and press the CHECKING in order to trigger the exit.
    If I run the process above in debug way, in table TLINES I can see the current text (so all modifications I've done)
    Max

  • Changing Item Values before saving Purchase Requisition in me51n, set_data function

    Hello,
            I have written a user exit, which is called whenever changes are made to a purchase requisition. User Exit is MEREQ001 , function module EXIT_SAPLMEREQ_010 . My requirement here is that the Requisitioner should be 135 for every PR item under certain conditions. Therefore whenever there is any change made to the PR, before saving the PR item, I need to set the Requisitioner to 135, give a status message saying that the Requisitioner is set to 135 and save the Pr with the changed values. Following is the code I have written in EXIT_SAPLMEREQ_010. However, the set_data function called below does not change the PR values. Pls help
    data: lt_item type mmpur_requisition_items,
           wa_item type mmpur_requisition_item,
           wa_itemdet type mereq_item,
           wa_itemref type ref to if_purchase_requisition_item,
           w_message type i.
    constants: c_135 type afnam value '135'.
    call method im_req_header->get_items
         receiving
                 re_items = lt_item.
        loop at lt_item into wa_item.
         wa_itemref = wa_item-item.
         wa_itemdet = wa_itemref->get_data( ).
         if wa_itemdet-afnam ne c_135.
           w_message = 1.
           wa_itemdet-afnam = c_135.
           call method wa_itemref->set_data( wa_itemdet ).
         endif.
       endloop.
      IF w_message = 1.
        MESSAGE 'Requisitioner defaulted to 135 for all items' TYPE 'I'.
      ENDIF.

    Hi Sachin,
               I am able to get a reference to if_purchase_requisition_item in my code (wa_itemref ) and am also able to access each of the line items in the PR in the work area wa_itemdet.
    At this point in the code ( wa_itemdet-afnam = c_135 ) , the work area value is set to '135', However, call method wa_itemref->set_data( wa_itemdet ), does not change the values of the work area wa_itemdet . Pls help

  • Validation of Item Values before saving the form

    Hi,
    I have requirement in Oracle Forms, we give header information as per the requirement and the lines info of the specific header. In lines whe have two feild as type and amount. If the type is 'E' then we need to sum up the amount value as credit and if type is 'F' we need to sum up of those feild values as Debit and before saving the form we need to check the sum of Credit and Debit is equal or not if equal then we should allow to save the form else it should not. We can have multiple lines under single header..Can any body help on this..Its very emergency..
    Thanks,
    Maggi.

    Hi,
    In Customer-exit ILOM0001 read table IMPT_BUF[] from sap stack. It contains all enteries of measuring points.
    Use below mentioned code in above exits for your reference.
    FIELD-SYMBOLS : <fs_impt> type ANY TABLE.
    data : tab_impt type TABLE OF impt.
    ASSIGN ('(SAPLIMR0)IMPT_BUF[]') to <fs_impt>.
    if sy-subrc is INITIAL.
      tab_impt = <fs_impt>.
    endif.
    table TAB_IMPT is filled wilth all entries of measuring point while creating and changing functional location.
    Thanks,
    Vijay

  • 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

  • Print preview before saving for notification

    Hi all,
    When creating a notification in IW51, user could preview nothing before he/she saves the notification. What method could be used in the print program so that the preview shows the contents before saving?
    Thanks!

    Hi Macy lo,
    In the SSF_OPEN function module,
    Set the OUTPUT OPTIONS paramter TDDEST to your printer name.
    Set the CONTROL PARAMETERS and control parameters as shown below,
    control-preview = 'X'.
    control-no_open = 'X'.
    control-no_close = 'X'.
    control-no_dialog = 'X'.
    control-device = 'PRINTER'.
    control_parameters-no_dialog = 'X'.
    control_parameters-no_open = 'X'.
    control_parameters-no_close = 'X'.
    OUTPUT_OPTIONS-TDDEST = 'PRINTER NAME'.
    OUTPUT_OPTIONS-TDNOPRINT = 'X'.
    CALL FUNCTION 'SSF_OPEN'
    EXPORTING
    output_options = output_options
    control_parameters = control
    user_settings = ' '
    EXCEPTIONS
    formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4
    OTHERS = 5.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Regards,
    sravanthi

  • Changing PO item text when material number changed in ME22N

    Hi all,
    I am facing a problem as described below. Please provide me a concrete solution.
    My customer wants me to add a custom item text as Work Authorization Data in ME21N and ME22N. I have created a user exit to implement this requirement. So whenever the user enters a material as a PO Item and saves the PO, my user exit is invoked and the custom data pertaining to that material is displayed as an item text. Later when the user edits the PO and changes the material number from any line item, the system deletes all the item texts corresponding to that line item.
    My problem is, after that when my user exit is invoked, the corresponding text is not getting stored. If I change any other data (like quantity or unit) again and saved, then the text gets saved.
    Can anyone provide me solution to make this item text get saved at the time of  change in material number itself.
    FYI, I am working on SAP R/3 - 4.7 version. If more details are needed then I shall provide them.
    Thanks and regards
    Abdul Shabeer.

    Hi,
    it does not matter if the BADI is already implemented. You can add your additional logic there. If you put break points in all methods of BADI implementation and run ME2xN then you will see when is each method called. You are right that here is no BADI method SET_DATA. What I meant is that you get a reference to PO item (type IF_PURCHASE_ORDER_ITEM_MM) in BADI method PROCESS_ITEM. This interface has to methods GET_DATA and SET_DATA. Using these methods you can get current item fields and change them according to your needs.
    Cheers

  • Restrict Duplicate entry of record before saving the form

    Hi!!
    I need to validate duplicate entry of ITEM CODE before saving the FORM. Which means, if I have entered an ITEM CODE in a row, the same ITEM CODE should not be allowed to be entered in any other rows. It should throw an error message and should ask to enter another ITEM CODE instead. I did not get the correct logic from the threads.
    Regards
    Mitto

    hey i have a requirement that to restrict duplicate entry in both block(both multi record).the blocks are DEPT(MATER)
    EMP(DETAIL)
    the associated fieds in master block DEPT.DEPT_NO,in detail EMP.EMP_ID .
    I have done' Kevin D Clarke’s calculated item ' both in master and detail block
    its working fine for master block but in case of detail block its only respond to the current session(i.e. if the new value is inserted or save it will restrict another record to be inserted of that last record's value),it does not restrict duplicate value enter ,checking with other existing records(which are saved in earlier session,though after query it is shown on the form)
    can anyone guide me why its not working

  • Item Text of PO needs to be populated before it is saved

    Hi All,
    I have to write Item text of PO to Application server along with other PO details.
    So using ME21n I am trying to do this using a BTE, but when BTE is triggered by  that time item text is not saved to PO so I am unable to capture it.
    Please suggest the approach or solution for this issue.
    Thanks in advance.

    hi,
    u will not be able to fetch the latest value untill commit take place for me21n..
    So u need to get that value at runtime, so u need to debug and find out, I think u will get some method which will give u that current text...
    And write enhancement(may be implicit) and write ur data to App. server.

  • Material item text not appearing in PO Print Preview

    Hi experts,
    We have created a new PO type .  We have assigned it with PO text via Spro>Purchasing>Purchase Order > Message > Text for messages > define text for purchase order
    Maintained text for document header
    Maintained  text for document item
    But still in Purchase Order , the material PO text at item level , is not appearing at the time of print preview / print out.
    Please suggest .
    Regards,
    ( Rajneesh Gulati )

    If I understand correctly, you want to copy the purchase order text from the material master directly into the PO's for this material.
    I got the same problem; text appears in PO item text, but doesn't appear on print preview.
    => check your forms first
    => if you can't find an error here, check the copying control in
    SPRO -> Materials Management -> Purchasing -> Purchase Order -> Texts for purchase orders -> Define copying rules for item texts
    go to the text linkages of the text type that you want to see appearing
    => make sure that the entries with source object 'material master' have the Fix value (blank) rather than N or * (if you see the text appearing in the PO but not on the print out, this means that this setting is currently set on *)
    Hope this helps

  • Print Preview of PO before saving .

    Dear Experts ,
    Is it possible to view a print preview of a PO after  just checking the PO & before saving it ??
    If yes pls let me know how ?
    Regards
    Anis

    Hi Anis,
    yes, you can view a PO in print preview in ME21N before saving it but the following are pre-requisities:
    1 - There are valid messages defined for the PO - check by clicking on 'Messages' at the top of the screen. So long as there is a message defined, you can display, if not, add the output type that you would like to use (NEU for example).
    2 - The output type must be pointing correctly to a printer or valid e-mail address (for e-mail outputs)
    3 - You must have access to transaction ME9F in authorisations - although you are not navigating to ME9F, you will still need the access
    If these things are OK, click on print preview and you will get an image of what the printed document will look like.
    Rob

  • Reading Item texts of a document (PO) while it is not yet saved

    Hi Team ABAP,
    i´m a little confused about those item texts.
    I was searching the Forum on this and found thread
    according to this i adopted my Coding, but still it wont, work. Maybe one of you guys has an Idea where i go wrong?
    FORM get_article_basic_text
      USING           ebeln           TYPE ebeln
                      ebelp           TYPE ebelp
                      matnr           TYPE matnr.
      DATA:           ls_header       TYPE thead,
                      lt_lines        TYPE TABLE OF tline,
                      ls_lines        TYPE tline,
                      lv_swap         TYPE c LENGTH 3,
                      lv_line         TYPE char20.
      FIELD-SYMBOLS: <line>           TYPE tline.
      DO 30 TIMES.
        WRITE sy-index TO lv_swap.
        CONDENSE lv_swap.
        CONCATENATE 'W_LONG_TXT' lv_swap INTO lv_line.
        ASSIGN (lv_line) TO <line>.
        IF <line> IS ASSIGNED.
          CLEAR <line>.
        ENDIF.
      ENDDO.
      IF ebeln IS INITIAL.
        ebeln = 'XXXXXXXXXX'.
      ENDIF.
      CONCATENATE ebeln ebelp
      INTO        ls_header-tdname.
      ls_header-tdid      = 'F03'.
      ls_header-tdobject  = 'EKPO'.
      ls_header-tdspras   = nast-spras.
      g_tdname = ls_header-tdname.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
          id                      = ls_header-tdid
          language                = ls_header-tdspras
          name                    = ls_header-tdname
          object                  = ls_header-tdobject
        TABLES
          lines                   = lt_lines
        EXCEPTIONS
          id                      = 1
          language                = 2
          name                    = 3
          not_found               = 4
          object                  = 5
          reference_check         = 6
          wrong_access_to_archive = 7
          OTHERS                  = 8.
    I created a new PO using ME21N, added the F03 Text on item level for item 10. Then i pushed print preview and debugged right into my coding.
    Values for LS_HEADER were:
    ls_header-tdname = XXXXXXXXXX00010
    ls_header-tdid = F03
    ls_header-tdspras = D
    ls_header-tdobject = EKPO
    and still i got sy-subrc = 4 and no result.
    Edited by: Florian Kemmer on Jun 9, 2011 9:36 AM

    Florian,  Have you checked the possibility  of using the BADI "ME_PROCESS_PO_CUST" to achieve this ? Most of the methods in this badi uses the parameters of type IF_PURCHASE_ORDER_MM. May be you can use the methods IF_LONGTEXTS_MMGET_TEXTOBJECT,  IF_LONGTEXTS_MMGET_TYPES, IF_LONGTEXTS_MM~GET_TEXT of the interface IF_PURCHASE_ORDER_MM. 
    I didn't tried this with PO, but simliar kind of BADI worked properly with Purchase requisition.  Wiki post  [Purchase Requisition Header Long Text using Badi - ME_PROCESS_REQ_CUST|http://wiki.sdn.sap.com/wiki/display/ABAP/PurchaseReq.HeaderLongTextusingBadi-ME_PROCESS_REQ_CUST] may be helpful.
    Regards, Vinod

  • How to read header text in MM contract (ME31K/ME32K) before saving record?

    Hi All,
    In ME31K / ME32K (Contracts), before saving the contract I would like to check if the user has entered header text in the contract or not.
    I am using customer exit MM06E005.
    Can anybody help me with this?
    Thanks in advance.

    Try creating dummy text id which will be part of text determination procedure @ Customers sales text & document header text.
    else, maintain the SO10-text against this text ID. whenver user createds quotation this text will be defaulted irrespective of the cusotmer.
          then based on if user want to modify the text they have to enter manually in this text id. print this text in header.
    Regards,
    Reazuddin MD

Maybe you are looking for

  • How do i move my itunes library from one acc't to another and then delete itunes on the old acc't?

    I would like to set up a media acc't for my family of four to listen to our music library and view all of our photo's.  Then I would like to delete Itunes from my personal acc't.  I have been able to establish a media acc't for all family member's an

  • Windows Vista + N95 + Image Store - "Error communi...

    I am trying to store images from my N95 using the Image Store application. This worked beautifully in XP, but after upgrading to Vista, all I get is a dialog box telling me "Error communicating with the phone". This happens for both Bluetooth and USB

  • AddOn: Prevent from loading more than once

    Good Afternoon Experts: I appreciate you patience as I resurrect this topic since it has become an increasing concern here.  We need a way to restrict our AddOn from "being in" Task.mgr more than once.  We are working with Terminal Services.  A coupl

  • Running VMWare and want Protection

    A little help here for a Mac "newbie": I just downloaded XP (SP2) using VMware. Now I'm a bit concerned about protecting my laptop from all the "hazards" of hacking--which is why I made the switch in the first place. Can anyone recommend a good virus

  • Student CC For Child

    Hello, My son, who is a 7th grader and is 13, has shown interest in photo and video apps.  I currently own individual products of Premiere and Photoshop Elements 11, which I am fine with and have been using for awhile now. Would I be eligible to sign