Unable to add body text for Purchase Order

Hi,
If this question has been posted before request send me the link .
We are sending PO as a PDF attachment to email.
To add body text to this I copied the print program SAPFM06P and modified the fm06pe04 program.
DATA : l_mail_text TYPE bcsy_text,
                 l_mail_text_row TYPE soli.
          CONCATENATE 'Please check the' ' Attached file' INTO l_mail_text_row.
          APPEND l_mail_text_row TO l_mail_text.
            document = cl_document_bcs=>create_document(
                i_type    = 'PDF' " cf. RAW, DOC
                i_hex     = pdf_content
                i_text    = l_mail_text               "added by me
                i_length  = lp_pdf_size
                i_subject = lv_subject ).                   "#EC NOTEXT
But it does not show in the body text.
But if I use the add_attachment method the text comes as an attachment.
I am not sure what is the error here.
Regards,
Narayani

DATA: send_request       TYPE REF TO cl_bcs.
  DATA: text               TYPE bcsy_text.
  DATA: binary_content     TYPE solix_tab.
  DATA: document           TYPE REF TO cl_document_bcs.
  DATA: sender             TYPE REF TO cl_sapuser_bcs.
  DATA: recipient          TYPE REF TO if_recipient_bcs.
  DATA: bcs_exception      TYPE REF TO cx_bcs.
  DATA: sent_to_all        TYPE os_boolean.
         Convert the OTF file format ino the PDF format.
          CALL FUNCTION 'CONVERT_OTF_2_PDF'
            IMPORTING
              bin_filesize           = lwa_bin_filesize
            TABLES
              otf                    = lt_otf
              doctab_archive         = lt_doctab_archive
              lines                  = lt_pdf_lines
            EXCEPTIONS
              err_conv_not_possible  = 1
              err_otf_mc_noendmarker = 2
              OTHERS                 = 3.
          REFRESH lt_objbin.
         get the pdf data into the attachment table .
          CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
            EXPORTING
              line_width_dst              = 255
            TABLES
              content_in                  = lt_pdf_lines
              content_out                 = lt_objbin
            EXCEPTIONS
              err_line_width_src_too_long = 1
              err_line_width_dst_too_long = 2
              err_conv_failed             = 3
              OTHERS                      = 4.
         Refresh the local tables and workareas.
          REFRESH: lt_reclist,
                   lt_objtxt,
                   lt_objpack.
          TRY.
              CLEAR send_request.
    -------- create persistent send request ------------------------
              send_request = cl_bcs=>create_persistent( ).
    -------- create and set document with attachment ---------------
    create document from internal table with text
              REFRESH text.
              APPEND 'Body1.' TO text.
              APPEND 'Body2.'TO text.
              APPEND 'Body3.'TO text.
              CLEAR document.
              document = cl_document_bcs=>create_document(
                              i_type    = 'RAW'
                              i_text    = text
                              i_length  = '12'
                              i_subject = 'Electronic Payment Notification' ).
              FIELD-SYMBOLS <fs_x> TYPE x.
              DATA lv_content  TYPE xstring.
              CLEAR lv_content.
              LOOP AT lt_objbin INTO lwa_objbin.
                ASSIGN lwa_objbin TO <fs_x> CASTING.
                CONCATENATE lv_content <fs_x> INTO lv_content IN BYTE MODE.
              ENDLOOP.
              CLEAR pdf_content.
              pdf_content = cl_document_bcs=>xstring_to_solix(
                      ip_xstring = lv_content ).
    add attachment to document
    BCS expects document content here e.g. from document upload
    binary_content = ...
              CONCATENATE 'Remittance_' sy-datum sy-uzeit '.pdf' INTO lv_filename_cl.
              CALL METHOD document->add_attachment
                EXPORTING
                  i_attachment_type    = 'PDF'
                  i_attachment_subject = lv_filename_cl
                  i_att_content_hex    = pdf_content.
    add document to send request
              CALL METHOD send_request->set_document( document ).
    --------- set sender -------------------------------------------
    note: this is necessary only if you want to set the sender
          different from actual user (SY-UNAME). Otherwise sender is
          set automatically with actual user.
              CLEAR sender.
              sender = cl_sapuser_bcs=>create( sy-uname ).
              CALL METHOD send_request->set_sender
                EXPORTING
                  i_sender = sender.
              CALL METHOD send_request->set_status_attributes(
                EXPORTING
                i_requested_status = 'N'
                i_status_mail = 'N' ).
         Fill the receiver for the email with PDF attachemnt.
              CLEAR : lwa_reclist,
                      lwa_lfa1,
                      lwa_adr6.
              CLEAR lwa_lfa1.
              READ TABLE lt_lfa1
                    INTO lwa_lfa1
                    WITH KEY lifnr = lwa_reguh-lifnr.
              IF sy-subrc EQ 0.
                CLEAR lwa_adr6.
                READ TABLE lt_adr6
                      INTO lwa_adr6
                      WITH KEY addrnumber = lwa_lfa1-adrnr.
                IF ( sy-subrc EQ 0 )
                  AND ( lwa_adr6-smtp_addr IS NOT INITIAL ).
    --------- add recipient (e-mail address) -----------------------
    create recipient - please replace e-mail address !!!
                  CLEAR recipient.
                  recipient = cl_cam_address_bcs=>create_internet_address(
                                                   lwa_adr6-smtp_addr ).
                ELSE.
                  CLEAR lv_fax.
                  lv_fax = lwa_lfa1-telfx.
                  recipient = cl_cam_address_bcs=>create_fax_address(
                  i_country = lwa_lfa1-land1
                   i_number = lv_fax ).
                ENDIF.
              ENDIF.
    add recipient with its respective attributes to send request
              CALL METHOD send_request->add_recipient
                EXPORTING
                  i_recipient = recipient
                  i_express   = 'X'.
    ---------- send document ---------------------------------------
              CALL METHOD send_request->send(
                EXPORTING
                  i_with_error_screen = 'X'
                RECEIVING
                  result              = sent_to_all ).
              IF sent_to_all = 'X'.
                WRITE text-003.
              ENDIF.
              COMMIT WORK.
            CATCH cx_bcs INTO bcs_exception.
              WRITE: 'Error Occured'.
              WRITE: 'Error', bcs_exception->error_type.
              EXIT.
          ENDTRY.

Similar Messages

  • The long text for purchase order text  field in mm03

    Hi,
         Please provide me long text for purchase order field.in mm03 the view purchase order text having the long text for purchase order.this is enter when ever your creating the material.but we have table and field name for that and also how to handle this long text.please provide me urgently.
    Thanks & Regards,
    Radhakrishna.

    Hi,
    A sample code for ur requirement.
    TABLES : ekko,   "Purchasing Document Header
             ekpo,   "Purchasing Document Item
             thead.  "SAPscript: Text Header
    DATA: t_theads LIKE stxh  OCCURS 0 WITH HEADER LINE.
    DATA: t_tlines LIKE tline OCCURS 0 WITH HEADER LINE.
    DATA: v_ebeln_ebelp(15) TYPE c.
    TYPES: BEGIN OF t_download,
           ebeln LIKE ekko-ebeln,
           ebelp LIKE ekpo-ebelp,
           tdobject LIKE stxh-tdobject,
           tdid LIKE stxh-tdid,
           tdspras LIKE stxh-tdspras,
           count(4) TYPE c,
           tdformat LIKE tline-tdformat,
           tdline LIKE tline-tdline,
         END OF t_download.
    TYPES: BEGIN OF t_header,
          line1(20) TYPE c,
          line2(20) TYPE c,
          line3(20) TYPE c,
          line4(10) TYPE c,
          line5(10) TYPE c,
          line6(10) TYPE c,
          line7(10) TYPE c,
          line8(10) TYPE c,
          END OF t_header.
    DATA: g_filename TYPE string.
    DATA: gt_header TYPE STANDARD TABLE OF t_header.
    DATA: gs_header TYPE t_header.
    DATA: gt_download TYPE STANDARD TABLE OF t_download.
    DATA: gs_download TYPE t_download,
        gt_tlines   LIKE tline OCCURS 0 WITH HEADER LINE.
    DATA: v_subrc TYPE subrc.
    DATA: v_nb_lines TYPE i.
    DATA: v_ok TYPE i.
    DATA: v_ko TYPE i.
    DATA: v_ow TYPE i.
    DATA:  p_fname TYPE string.
    DATA: g_append.
                              SELECTION SCREEN                          *
    SELECT-OPTIONS : s_ebeln  FOR ekko-ebeln.
    PARAMETERS:
       p_filedn(132) TYPE c OBLIGATORY,
       p_file(132) TYPE c OBLIGATORY.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_filedn.
      PERFORM file_f4_get CHANGING p_filedn.
    START-OF-SELECTION.
    *Select all the purchase order corresponding to select criteria
      CLEAR t_theads. REFRESH t_theads.
      SELECT *
      FROM ekko
      WHERE ebeln IN s_ebeln.
    *Select all the text for P.O. header
        SELECT * FROM stxh
              APPENDING TABLE t_theads
              WHERE tdobject = 'EKKO'
              AND tdname      = ekko-ebeln.
    *Select Item of each P.O.
        SELECT *
        FROM ekpo
        WHERE ebeln = ekko-ebeln.
          CONCATENATE ekpo-ebeln ekpo-ebelp
          INTO v_ebeln_ebelp.
    *Select the text for P.O. item.
          SELECT * FROM stxh
                APPENDING TABLE t_theads
                WHERE tdobject = 'EKPO'
                  AND tdname   = v_ebeln_ebelp.
        ENDSELECT.              "select ekpo
      ENDSELECT.             "select ekko
      DESCRIBE TABLE t_theads LINES v_nb_lines.
      LOOP AT t_theads.
    Read the text from pool
        CLEAR thead.
        REFRESH t_tlines.
        CALL FUNCTION 'READ_TEXT'                               "#EC *
             EXPORTING
                  id                      = t_theads-tdid
                  language                = t_theads-tdspras
                  name                    = t_theads-tdname
                  object                  = t_theads-tdobject
             IMPORTING
                  header                  = thead
             TABLES
                  lines                   = t_tlines
             EXCEPTIONS
                  id                      = 1
                  language                = 2
                  name                    = 3
                  not_found               = 4
                  object                  = 5
                  reference_check         = 6
                  wrong_access_to_archive = 7
                  OTHERS                  = 8.
        MOVE-CORRESPONDING thead TO gs_download.
        gs_download-ebeln = thead-tdname+0(10).
        IF thead-tdobject = 'EKPO'.
          gs_download-ebelp = thead-tdname+10(5).
        ENDIF.
        gs_download-count = 0.
        LOOP AT gt_tlines.
          gs_download-tdformat = gt_tlines-tdformat.
          gs_download-tdline = gt_tlines-tdline.
          gs_download-count = gs_download-count + 1.
          APPEND gs_download TO gt_download.
        ENDLOOP.
        CLEAR gs_download.
      ENDLOOP.
    END-OF-SELECTION.
    Hope this helps.
    please reward points if  useful.
    Regards
    rose

  • Item text for Purchase order

    Hi All,
      I Wants to pick the item text for Purchase Order. in my prog i already picked the header text by Read_text FM .i wants to used the same FM for item pickup . Can you please tell the FM parameter Value, so that i can pick proper Item text value.
    <REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>
    Thanks in advance
    Moni
    Edited by: Alvaro Tejada Galindo on Sep 1, 2008 5:09 PM

    Hi Moni
    We can use the same procedure to retrieve texts of any document, just that the Name, Object and ID varies.
    To find the required parameters for each object and document do as below:
    1. Open an existing document
    2. Go to the required Text
    3. Double click on the same
    4. It takes you to the editor screen.
    5. Now use menupath: Goto->Header
    6. In the popup screen you will find the required paramters.
    For item texts the Name will be (PO Number + Item Number).
    Using the details, you can pass the same to FM: READ_TEXT and retreive the texts in programs.
    Regards
    Eswar

  • Unable to debug output type for purchase order

    HI all,
        In purchase order (ME21N) , i have a custom output type (ZSND) that send po to the user.  I try to debug the program when the output is called.  I put breakpoint in the custom program for the output ZSND.  However, It did not stop at the breakpoint.
    Can anyone tell me how I can debug the program ?
    thanks
    Joyce

    Hello,
    Try this:
    1. Put the break-point.
    2. Go to the transaction me22n  --> go to mesaage -->  click in your output type message click on further data --> put in dispatch time 'Send with aplication own transaction'
    3. Go to transaction ME9F put your document and message --> a list with the document will appears --> choose one and process it --> then it will stop in the break-point.
    Hope this will solve your problem.
    Best Regards

  • Item text in Purchase Order getting updated with info. record Purchase Order Text

    Hello All,
    I am working in a roll out project and facing issue in text repeating twice for the line item in the Purchase Order for the new company code for which rollout is happening
    Issue:
    Item text in Purchase Order getting updated with info. record Purchase Order Text
    01) PO Text is maintained in the material master under "Purchase Order Text" tab
    02) The PO text that is maintained in material master is getting updated in the Purchase Info. Record
    03) When Purchase Order is created, the "Item Text" gets updated in the Purchase Order automatically only for the new company code for which rollout is happening. when printed, this results in the text getting duplicated twice
    03.1) this behavior is not observed in the Plants/ Company code that is already Live
    Configurations in the system:
    The copying rules for the "Texts for Purchase Orders" is
    Source Object = "Info Record", Source Text="Purchase Order Text", Fix="*"
    We have modified the Purchase Order form to print one of  the condition types maintained for calculating the tax. Other than this there is no change to the plants that are already live.
    I could not locate any "Purchase Organization" / "Company Code" / "Plant specific configuration.
    Am I missing any configuration or where can I look in what is causing this error.
    Request help from the experts in the forum.
    with Regards,
    Dhandapani R

    There is no company/purchasing/plant specific customizing for purchase order text.
    The customizing copying rules for the "Texts for Purchase Orders" affects all equally .
    If the text in the purchase order in ME23N is already filled different to other plants, then you either have a modification in place, or the texts are differently maintained in the referenced data (vendor, material, info record, contract)

  • User Exits for Purchase order Header Text Validation

    Hi Experts,
    I need user exit for validate a  Long text in Purchase order header data for a Particular Doc type.
    We are using 4.6 B so badi is not available .
    So pls tell me user exit for the same or any other method as i was unable to find user exit for this scenario.
    Note :  This valiadation should trigger whhile creating  PO.
    Warm Regards
    Santosh Kumar
    Edited by: Santosh L on Mar 19, 2010 9:58 AM

    i have used concept of global memory through call stack

  • SAP VB script for updating texts in purchase orders

    Hello,
    I am trying to create a SAP script for updating texts in purchase orders. It is in the last third - Item Detail,  Texts tab.
    The script is ok apart from the fact that it always deletes whatever text is in there and than add a new one.
    I would like to keep history in the texts tab and always just add one line to existing texts. Is there any way (command) how
    to keep existing texts and only add a new line to the top?
    Thanks a lot!
    Jan

    Yes, you are exactly right. I have already figured it out as well. I did not expect it would be that easy. But thanks a lot anyway for replying on this!
    Now I am struggeling with changing SAPLMEGUI in vb scripts for ME22n. Sometimes, there is SAPLMEGUI:0010 and sometimes SAPLMEGUI:0015. Even when the users have the same screens in the beginning the SAPLMEGUI number differs. They also do one item by hand and than it changes. It keeps changing between SAPLMEGUI:0010 and SAPLMEGUI:0015
    Is there a way how to have the same number of SAPLMEGUI or how to eliminate this issue?
    Thanks a lot
    Jan

  • Uploading sales text and Purchase order text for material master

    Hi,
      I have created, material master with LSMW  byt not updated SALES TEXT and Purchase order text with LSMW  now i want to uplaod the sales and po text for material master can you give some link or ref. code to upload the text i have near 1000 items for which i want to uplaod text  when i have done the recording with SHDB  i have not found filed in recording.
    regards,
      zafar

    Hi,
    I have made the code in se38
    as below but still it is not working
    REPORT  ZTEST_TEXT.
      data: headerl like thead occurs 0 with header line.
      data itab3 like tline occurs 0 with header line.
    headerl-tdobject = 'MATERIAL'.
    headerl-tdname = '00000000000LSMW123'.          "(Material : 000000000300000560, Sorg : 0001, Dist channel: 01)
    headerl-tdid  = 'BEST'.
    headerl-tdspras = 'E'.
    append headerl.
    move '*' to itab3-tdformat.
    move 'Testing PO text' to itab3-tdline.
    append itab3.
    call function 'SAVE_TEXT'
      exporting
        header                = headerl
      insert                = ' '
       savemode_direct       = ' '
      tables
        lines                 = itab3
    exceptions
       id                    = 1
       language              = 2
       name                  = 3
       object                = 4
       others                = 5.
       IF SY-SUBRC = 0.
         CALL FUNCTION 'COMMIT_TEXT'
           EXPORTING
                OBJECT   = headerl-tdobject
                NAME     = headerl-tdname.
       ENDIF.
       break-point.
    regards,
    zafar

  • NACE Configuration for Purchase order output "Title Text"

    Hello Gurus,
    I have a small question, Is it possible to make dynamic Document title when sending purchase order email to vendor.
    I have checked configuration in NACE where for each output type where you can maintain "Mail title and Texts". For example if your output type is Email then you can maintain document title text as "Purchase order Email".
    Our requirement is to put purchase order name in document title i.e. when vendor receive email in their inbox it says purchase order number.
    Please advise.
    Thank you
    Ritesh

    Thanks Jurgen. This note helped us.
    Best Regards
    Ritesh

  • Add text for sales order to A/R line items

    Hello Experts:
    Does anybody know of a way to add the field VBRP-ARKTX (Short text for sales order item) to the A/R line item display (FBL5N

    HI,
    Please explore the option of using a USER-EXIT at the time of creation of Accounting Document from the Billing document. Looks like the field you are interested in is not automatically transferred from the billing interface to the accounting interface.
    Regards

  • Use Word Editor for purchase order header text

    Dear community!
    Currently in our system when we create purchase order header text we are using the standard sap text editor.
    I saw another system where they are using some kind of microsoft word editor plug in to create purchase order header texts and purchase order item texts.
    I would like to figure out how I can activate this editor in the system.
    Any help is appreciated - full points will be rewarded
    Thanks & regards
    Alex

    Hi,
    I tried to do that....
    but we are on SAP_BASIS 701 / 0008 / SAPKB70108
    when i start the report I get the message:
    MS Word is a default editor now.  Please read SAP Note 742662.
    hints???

  • Use of SAVE_TEXT in customer exits / BADI for purchase order

    Hi All,
    I am trying to save some long text by using SAVE_TEXT function module in a badi implementation for purchase order header text. The same is working fine if i try to update the PO header text via a report. But if i try using badi (the code is written in a PAI event for the BADI), then though the text transfer and save is successful during the code excution, but for the first time when i add any text its not visible in ME22N tcode. Since its an online event. But when i double click on that editor and the sap script editor gets opened. then i press back button, the text is appearing on the same small screen edtor . after this any number of time i edit or delete text, the save_text function module works fine.
    My issue is why for the first time always i have to double click on the editor to open the sap script editor. I have also included commit_text in this case after save_text FM.
    the requirement here goes like this. in one tab for PO header the user will enter some number (This is a customizing screen implemented through badi.) and the corresponsing discription should appear when user clicks on text tab in po header screen (me21n / me22n).
    Kindly help.
    Thanks
    Mamata

    Hi  mamata rath
    I have solve the problem which similar to yours.  the code which is as the following
    DATA: textline TYPE tdline,
            name TYPE c LENGTH 70,
            glines TYPE TABLE OF tline,
            gline  LIKE LINE OF glines,
            ls_header TYPE thead.
         CONCATENATE ch_eban-banfn ch_eban-bnfpo INTO name.
             ls_header-tdobject = 'EBAN'.
             ls_header-tdname = name.
             ls_header-tdid = 'B01'.
             ls_header-tdspras = sy-langu.
             CALL FUNCTION 'SAVE_TEXT'
               EXPORTING
    *           CLIENT                = SY-MANDT
                 header                = ls_header
    *           INSERT                = ' '
    *           SAVEMODE_DIRECT       = ' '
    *           OWNER_SPECIFIED       = ' '
    *           LOCAL_CAT             = ' '
    *         IMPORTING
    *           FUNCTION              =
    *           NEWHEADER             =
               tables
                 lines                 = glines
               EXCEPTIONS
                 ID                    = 1
                 LANGUAGE              = 2
                 NAME                  = 3
                 OBJECT                = 4
                 OTHERS                = 5
              IF sy-subrc = 0.
                  CALL FUNCTION 'COMMIT_TEXT'
                    EXPORTING
                      OBJECT                = 'EBAN'
                      NAME                  = name
    *                ID                    = '*'
    *                LANGUAGE              = '*'
    *                SAVEMODE_DIRECT       = ' '
    *                KEEP                  = ' '
    *                LOCAL_CAT             = ' '
    *              IMPORTING
    *                COMMIT_COUNT          =
    *              TABLES
    *                T_OBJECT              =
    *                T_NAME                =
    *                T_ID                  =
    *                T_LANGUAGE            =
              ENDIF.

  • OAF Tutorial Extension - To add Site Name in Purchase Order Summary Page

    I have gone through all steps for adding Supplier Site Name for Purchase Order Summary Page. It works but seems it shows SiteID instead of Site Name.
    The main instructions says
    Step 2.3 Create Your New View Object (VO)
    Make a copy the PoSummaryVO query statement before you begin creating your new VO. Expand the oracle.apps.fnd.framework.toolbox.tutorial.server package in the Navigator pane and edit PoSummaryVO. In the View Object Editor, select Query to display the query statement for this VO. Make a copy of the query statement.
    Create a new VO, named <YourName>PoSummaryVO, that extends oracle.apps.fnd.framework.toolbox.tutorial.server.PoSummaryVO.
    Create the VO in the <yourname>.oracle.apps.fnd.framework.toolbox.tutorial.server package.
    Add the oracle.apps.fnd.framework.toolbox.schema.server.SupplierSiteEO entity object. Leave the Read Only and Reference checkboxes checked. We are going to use this entity object only for read-only purposes.
    Add the SupplierSiteId and SiteName attributes from the SupplierSiteEO entity object.
    Paste the query statement that you copied from PoSummaryVO into the query statement field for <YourName>PoSummaryVO. Now append the following SQL phrases to the copy of the PoSummaryVO query statement to compose the query statement for the <YourName>PoSummaryVO.
    SELECT ...,
    SupplierSiteEO.SUPPLIER_SITE_ID,
    SupplierSiteEO.SITE_NAME
    FROM ...,
    FWK_TBX_SUPPLIER_SITES SupplierSiteEO
    WHERE ...
    AND SupplierEO.SUPPLIER_ID = SupplierSiteEO.SUPPLIER_ID
    Step 2.8 Personalize the UI to Display Your New Attribute
    Rebuild the ExtendLab project and make sure you have no errors.
    Run the <Yourname>PoSummaryCreatePG.xml page with personalization turned on (see Personalizing Your Pages and Portlets for more information on how this is done).
    Select the Personalize Page global link.
    In the Choose Personalization Context page, select Page: <Yourname> Framework Toolbox Tutorial: Multistep Create from the Scope poplist and select the Apply button.
    In the Personalize Page page, check the Complete View radio button for the Personalization Structure. Expand the Stack Layout: Purchase Order Summary Region node, locate the Table: Purchase Orders Table entry in the page hierarchy and select the Create Item icon.
    In the Create Item page:
    Set the Item Style to Message Styled Text.
    Set the ID to SiteName.
    Set the Prompt to Supplier Site
    Set the View Attribute to SiteName
    Set the View Instance to PoSummaryVO1
    Select the Apply button
    In the Personalize Page Hierarchy page, locate the Table: Purchase Orders Table entry again and select the Reorder icon.
    In the Reorder Contents of Table page's Site list, move the Supplier Site item to be sequenced immediately after the Supplier item.
    Select the Apply button.
    In the Personalize Page Hierarchy page, select the Return to Application link. Now you should see the Supplier Site column added to the Orders Table as shown in Figure 1 (you should see your name in the page title).
    Note: We set the View Instance to PoSummaryVO1 and not <YourName>PoSummaryVO1. The BC4J substitution will take care of properly creating an instance of <YourName>PoSummaryVO1 at runtime in place of the PoSummaryVO1.
    It does not show site name, it shows site id after havig done personalization.
    Any idea why it would show site id and not site name.
    KD

    What I found is there are 2 variables SiteName and SiteName1, if you use SiteName1 then it shows proper value as a site description. I replaced SiteName with SiteName1 and it works. This might help to all who are like me and trying Tutorial example.
    I am not sure how many may have tried OAF - Tutorial examples. They are really complicated and not easy and in most cases they are not coming out in first try but if you really try then it will give lot of understanding.

  • Item text in Purchasing order

    Hi all,
      I have developed a smart form for Purchase order in that i am displaying header and item texts by passing text name, text object, text ID and language to include text.
    My problem is when i am looking in print privew for just creating document (Which is not saved yet so then document number is not generated) then header text is commping perfectly(I am passing the document number to Text name but presently it is initial but it is comming perfectly) but item text is not comming (I am passing the concatinated value of document number and item number to text name).
    Please suggest me how to display newly creating purchase documents item texts(No yet saved purchase orders).
    If it is not possible why the header text is comming perfectly???
    Thanks in advance,
    Mahi.

    Hi kesav,
      The text is not storing in STXH table because the document is not saved yet and the purchase document number is not generated yet. In the STXH table Text Name(Document number) is the key field so the text is not storing in that table.
    My problem is not solved yet any body please suggest me how to display the item text in pring privew.
    If it is not possible to display the text with out saving the PO why the header test is coming fine???
    Mahi

  • User Exit for Purchase Order Release Strategy

    Hi,
    I am a little new to this, how do I search for a user exit for purchase order release strategy (TCode ME29N).
    Thanks in advance.
    Mick

    Hi
    Check the following Exits and BADI for Pur Requisition
    Enhancement
    MEVME001 WE default quantity calc. and over/ underdelivery tolerance
    MM06E001 User exits for EDI inbound and outbound purchasing documents
    MM06E003 Number range and document number
    MM06E004 Control import data screens in purchase order
    MM06E005 Customer fields in purchasing document
    MM06E007 Change document for requisitions upon conversion into PO
    MM06E008 Monitoring of contr. target value in case of release orders
    MM06E009 Relevant texts for "Texts exist" indicator
    MM06E010 Field selection for vendor address
    MM06E011 Activate PReq Block
    MMAL0001 ALE source list distribution: Outbound processing
    MMAL0002 ALE source list distribution: Inbound processing
    MMAL0003 ALE purcasing info record distribution: Outbound processing
    MMAL0004 ALE purchasing info record distribution: Inbound processing
    MMDA0001 Default delivery addresses
    MMFAB001 User exit for generation of release order
    MRFLB001 Control Items for Contract Release Order
    AMPL0001 User subscreen for additional data on AMPL
    LMEDR001 Enhancements to print program
    LMELA002 Adopt batch no. from shipping notification when posting a GR
    LMELA010 Inbound shipping notification: Transfer item data from IDOC
    LMEQR001 User exit for source determination
    LMEXF001 Conditions in Purchasing Documents Without Invoice Receipt
    LWSUS001 Customer-Specific Source Determination in Retail
    M06B0001 Role determination for purchase requisition release
    M06B0002 Changes to comm. structure for purchase requisition release
    M06B0003 Number range and document number
    MEQUERY1 Enhancement to Document Overview ME21N/ME51N
    MELAB001 Gen. forecast delivery schedules: Transfer schedule implem.
    MEFLD004 Determine earliest delivery date f. check w. GR (only PO)
    MEETA001 Define schedule line type (backlog, immed. req., preview)
    ME590001 Grouping of requsitions for PO split in ME59
    M06E0005 Role determination for release of purchasing documents
    M06E0004 Changes to communication structure for release purch. doc.
    M06B0005 Changes to comm. structure for overall release of requisn.
    M06B0004 Number range and document number
    Business Add-in
    ME_PROCESS_REQ_CUST Enhancements for Processing Enjoy PReqs: Customer
    ME_PROCESS_REQ Enhancements for Processing Enjoy PReqs: Internal
    ME_PROCESS_PO_CUST Enhancements for Processing Enjoy Purchase Order: Customer
    ME_PROCESS_PO Enhancements for Processing Enjoy Purchase Order: Intern.
    ME_PROCESS_COMP Processing of Component Default Data at Time of GR: Custome
    ME_PO_SC_SRV BAdI: Service Tab Page for Subcontracting
    ME_PO_PRICING_CUST Enhancements to Price Determination: Customer
    ME_PO_PRICING Enhancements to Price Determination: Internal
    ME_INFOREC_SEND Capture/Send Purchase Info Record Changes - Internal Use
    ME_HOLD_PO Hold Enjoy Purchase Orders: Activation/Deactivation
    ME_GUI_PO_CUST Customer's Own Screens in Enjoy Purchase Order
    ME_FIELDSTATUS_STOCK FM Account Assignment Behavior for Stock PR/PO
    ME_DP_CLEARING Clearing (Offsetting) of Down Payments and Payment Requests
    ME_PURCHDOC_POSTED Purchasing Document Posted
    SMOD_MRFLB001 Control Items for Contract Release Order
    EXTENSION_US_TAXES Extended Tax Calculation with Additional Data
    ARC_MM_EKKO_WRITE BAdI: Enhancement of Scope of Archiving (MM_EKKO)
    ARC_MM_EKKO_CHECK BAdI: Enhancement of Archivability Check (MM_EKKO)
    MM_EDI_DESADV_IN Supplementation of Delivery Interface from Purchase Order
    MM_DELIVERY_ADDR_SAP Determination of Delivery Address
    ME_WRF_STD_DNG PO Controlling Reminder: Extension to Standard Reminder
    ME_TRIGGER_ATP Triggers New ATP for Changes in EKKO, EKPO, EKPV
    ME_TRF_RULE_CUST_OFF BADI for Deactivation of Field T161V-REVFE
    ME_TAX_FROM_ADDRESS Tax jurisdiction code taken from address
    ME_REQ_POSTED Purchase Requisition Posted
    ME_REQ_OI_EXT Commitment Update in the Case of External Requisitions
    ME_RELEASE_CREATE BAdI: Release Creation for Sched.Agrmts with Release Docu.
    ME_DEFINE_CALCTYPE Control of Pricing Type: Additional Fields
    ME_CHANGE_OUTTAB Enrich ALV Output Table in Purchasing
    ME_CHANGE_CHARACTER Customer-Specific Characteristics for Product Allocation
    ME_CCP_DEL_DURATION Calc. of Delivery Duration in CCP Process (Not in Standard)
    ME_CCP_BESWK_AUTH_CH BAdI for authorization checks for procuring plant
    ME_CCP_ACTIVE_CHECK BAdI to check whether CCP process is active
    ME_BSART_DET Change document type for automatically generated POs
    ME_BAPI_PR_CREATE_02
    ME_BAPI_PR_CREATE_01
    ME_BAPI_PO_CREATE_02
    ME_BAPI_PO_CREATE_01
    ME_BADI_DISPLAY_DOC BAdI for Internal Control of Transaction to be Invoked
    ME_ACTV_CANCEL_PO BAdI for Activating the Cancel Function at Header Level
    MEGUI_LAYOUT BAdI for Enjoy Purchasing GUI
    ME_CHECK_ALL_ITEMS Run Through Items Again in the Event of Changes in EKKO
    ME_COMMTMNT_REQ_RE_C Check of Commitment Relevance of Purchase Requisitions
    ME_COMMTMNT_REQ_RELE Check of Commitment Relevance of Purchase Requisitions
    ME_COMMTMNT_PO_REL_C Check for Commitment-Relevance of Purchase Orders
    ME_COMMTMNT_PO_RELEV Check for Commitment-Relevance of Purchase Orders
    ME_COMMITMENT_STO_CH BadI for checking if commitments for STOs are active
    ME_COMMITMENT_RETURN Commitment for return item
    ME_CIP_REF_CHAR Enables Reference Characteristics in Purchasing
    ME_CIP_ALLOW_CHANGE Configuration in Purchasing: Changeability Control
    ME_CIN_MM06EFKO Copy PO data for use by Country version India
    ME_CIN_LEINRF2V BADI for LEINRF03 excise_invoice_details
    ME_CIN_LEINRF2R BADI for CIN India - Delivery charges
    ME_CHECK_SOURCES Additional Checks in Source Determination/Checking
    ME_CHECK_OA Check BAdI for Contracts
    Reward points if useful
    Rgds,
    Naren

Maybe you are looking for

  • How do I connect my macbook pro 5,5 to 24" cinema display

    how can I connect my macbook pro 5,5 to apple 24" cinema display

  • Lion, Boot Camp and Windows 7 Issues

    Couple of questions regarding Lion, Boot Camp and Windows 7... I never had issues with Snow Leopard and setting up Windows 7 on my iMac (expcept the dreaded black screen after restart, bu got that fixed) Let me start off with my specs and then I will

  • Can I use an external usb super drive on my iMac 10.6.8 ?

    Can I use an external USB SuperDrive on my 10.6.8 iMac the internal drive is not working at all? Thank you.

  • Getting Printer List !!!

    Hai ! How can I get installed printer names through java code? I have seen in this forum, so many persons asked this question but no one answered. I wonder why it is? is it possible or not? Please anybody respond me! Thanks in advance Joseph

  • BI content SRM upgrade 7.0

    Dear all, We have upgraded our SRM system to 7.0. In BI, I have activated the new Business content. I know that there are new fields, like OSR_DSTRIND, PS_HL_ITEM, PS_HANDLE_ITM. We have a contract, where a contract item is distributed to 2 different