How to Make Purchase Order TEXTS Mandatory

Hi.........
             I want to make some Purchase Order texts mandatory(for ex Header text) so that i should appear in PO Print and user should not be able to proceed unless he make an entry.
                                        Please help me out......
Thanks

Hi,
In spro>mm>pur>po>define screen layout select filed selection AKTH Create for ref.data item make it
required entry
BR
Diwakar

Similar Messages

  • How to Display  'purchase order text' in MM03 using report program

    Hi Friends,
    Can anybody suggest me how to display 'purchase order text' in MM03 using report program.
    'Purchase order text' tab displays purchase long text of particular material .
    I coded as:
          SET PARAMETER ID 'MXX' FIELD 'E'.
          SET PARAMETER ID 'MAT' FIELD k_final-matnr.
          SET PARAMETER ID 'WRK' FIELD k_final-werks.
          CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
    It displays Purchasing tab other than Purchase Order Text tab of MM03.
    Please suggest me how can i solve this.
    Is there any parameter id to set values for Purchase Order text tab

    >
    Madhu Mano Chitra wrote:
    > I want how to navigate to MM03 'Purchase Order text'  tab/ view using ABAP code.
    > could any suggest me
    You can call a transaction and pass it a BDC table that tells it where you want it to go.  You have to work out for yourself what to put into the BDC table.  The code below works for tcode CATSSHOW.
    DATA: bdcdata_wa  TYPE bdcdata,
          bdcdata_tab TYPE TABLE OF bdcdata.
    DATA opt TYPE ctu_params.
       CLEAR bdcdata_wa.
        bdcdata_wa-program  = 'CATSSHOW'.
        bdcdata_wa-dynpro   = '1000'.
        bdcdata_wa-dynbegin = 'X'.
        APPEND bdcdata_wa TO bdcdata_tab.
        CLEAR bdcdata_wa.
        bdcdata_wa-fnam = 'SO_STATU-LOW'.
        bdcdata_wa-fval = '20'.
        APPEND bdcdata_wa TO bdcdata_tab.
        CLEAR bdcdata_wa.
        bdcdata_wa-fnam = 'ANDZEIT'.
        bdcdata_wa-fval = SPACE.
        APPEND bdcdata_wa TO bdcdata_tab.
        CLEAR bdcdata_wa.
        bdcdata_wa-fnam = 'PAST'.
        bdcdata_wa-fval = 'X'.
        APPEND bdcdata_wa TO bdcdata_tab.
        IF p_selscr = SPACE.
           CLEAR bdcdata_wa.
           bdcdata_wa-fnam = 'BDC_OKCODE'.
           bdcdata_wa-fval = '=ONLI'.
           APPEND bdcdata_wa TO bdcdata_tab.
        ENDIF.
        opt-dismode = 'E'.
        opt-defsize = 'X'.
    CALL TRANSACTION 'CAPP' USING bdcdata_tab OPTIONS FROM opt.

  • How to capture purchase order text view in mm01

    Hello All,
    Im doing recording for one material type in BDC but im not able to capture purchase order text view while creating material.
    Its not getting recorded only pls guide bcoz i have to enter purchase and sales text for new materials.
    Regards,
    Sunny

    Hi Sunny,
    I have a different sugesstion. Never use BDC if u have BAPI available for the same functionality.
    use this BAPI BAPI_MATERIAL_SAVEDATA for material creation. Even u can create the po texts here. Check the parameters MATERIALLONGTEXT and EXTENSIONIN. in FM documentation. It is pretty clear.
    Different long texts (basic data texts, purchase order texts, internal comments, sales texts, material memos) can be created for a material. This requires the fields APPLOBJECT, TEXT_NAME, TEXT_ID, and LANGU or LANGU_ISO in table parameter MATERIALLONGTEXT to contain entries. Depending on the content of field TEXT_ID, the field TEXT_NAME must have the following structure:
    The material number is transferred first. If it has fewer than 18 characters, the remaining characters must be filled with blanks. If it is a material memo (LTXT), the plant key must also be transferred from character 19 onwards; in the case of a sales text (0001), this must be the sales organization and distribution channel. The combinations allowed for the four different fields are indicated in the following table:
    APPLOBJECT TEXT_NAME  TEXT_ID    LANGU
    MATERIAL Matl no. (18 char.)  BEST, GRUN, or IVER  Language
    MDTXT Matl no. (18 char.)  LTXT    Language
    Plant
    MVKE Matl no. (18 char.)  0001    Language
    Sales organization and
    distribution channel
    Thanks,
    Vinod.

  • How to capture Purchase order text from MM02

    Hi Friends ,
    i have a requirement like i have  to capture the purchase order text from MM02
    from one program.
    Pls give helpful code .
    Thanks & Regards
    Jagadeeshwar.Bachu

    hi
    check this code
    Hi,
    declare the paramters like:
    To fetch Long Text lines for READ_TEXT function module
    DATA:BEGIN OF dt_lines OCCURS 0.
    INCLUDE STRUCTURE tline. " Long Text
    DATA:END OF dt_lines.
    Variable declarations for Read_TEXT function module
    DATA : dl_name TYPE thead-tdname, " Object Name
    dl_lan TYPE thead-tdspras. " Language
    Constants
    CONSTANTS:
    Object ID for Long Text of Sales Item Text
    c_best TYPE thead-tdid value 'Z026', ID
    c_object TYPE thead-tdobject . " Object
    Object will be VBBK, and the Object name will be the concatenation of Sales order and Item No(for Item texts) and only Sales order for Header texts.
    Language will be default sy-Langu.
    In the loop of Sales orders call this fun module and use by passing all the above 4 paramters ID,OBJECT,NAME and LANG.
    You double click on that text
    GOTO -> header you will know the all above paramters.
    READ_TEXT
    READ_TEXT provides a text for the application program in the specified work areas.
    The function module reads the desired text from the text file, the text memory, or the archive. You must fully specify the text using OBJECT, NAME, ID, and LANGUAGE. An internal work area can hold only one text; therefore, generic specifications are not allowed with these options.
    After successful reading, the system places header information and text lines into the work areas specified with HEADER and LINES.
    If a reference text is used, SAPscript automatically processes the reference chain and provides the text lines found in the text at the end of the chain. If an error occurs, the system leaves the function module and triggers the exception REFERENCE_CHECK.
    Function call:
    CALL FUNCTION 'READ_TEXT'
    EXPORTING CLIENT = SY-MANDT
    OBJECT = ?...
    NAME = ?...
    ID = ?...
    LANGUAGE = ?...
    ARCHIVE_HANDLE = 0
    IMPORTING HEADER =
    TABLES LINES = ?...
    EXCEPTIONS ID =
    LANGUAGE =
    NAME =
    NOT_FOUND =
    OBJECT =
    REFERENCE_CHECK =
    WRONG_ACCESS_TO_ARCHIVE =
    Export parameters:
    CLIENT
    Specify the client under which the text is stored. If you omit this parameter, the system uses the current client as default.
    Reference field: SY-MANDT
    Default value: SY-MANDT
    OBJECT
    Enter the name of the text object to which the text is allocated. Table TTXOB contains the valid objects.
    Reference field: THEAD-TDOBJECT
    NAME
    Enter the name of the text module. The name may be up to 70 characters long. Its internal structure depends on the text object used.
    Reference field: THEAD-TDNAME
    ID
    Enter the text ID of the text module. Table TTXID contains the valid text IDs, depending on the text object.
    Reference field: THEAD-TDID
    LANGUAGE
    Enter the language key of the text module. The system accepts only languages that are defined in table T002.
    Reference field: THEAD-TDSPRAS
    ARCHIVE_HANDLE
    If you want to read the text from the archive, you must enter a handle here. The system uses it to access the archive. You can create the handle using the function module ACHIVE_OPEN_FOR_READ.
    The value '0' indicates that you do not want to read the text from the archive.
    Reference field: SY-TABIX
    Default value: 0
    Import parameters:
    HEADER
    If the system finds the desired text, it returns the text header in this parameter.
    Structure: THEAD
    Table parameters:
    LINES
    The table contains all text lines that belong to the text read.
    Structure: TLINE
    Exceptions:
    ID
    The text ID specified in the parameter ID does not exist in table TTXID. It must be defined there together with the object of the text module.
    LANGUAGE
    The parameter LANGUAGE contains a language key that does not exist in table T002.
    NAME
    The parameter NAME contains the name of a text module that does not correspond to the SAPscript conventions.
    Possible errors:
    The field contains only blanks.
    The field contains the invalid characters ‘*’ or ‘,’.
    OBJECT
    The parameter OBJECT contains the name of a text object that does not exist in table TTXOB.
    NOT_FOUND
    The system did not find the specified text module.
    REFERENCE_CHECK
    The text module to be read has no text lines of its own but refers to the lines of another text module. This reference chain can include several levels. For the current text, the chain is interrupted, that is, one of the text modules referred to in the chain no longer exists.
    WRONG_ACCESS_ TO_ARCHIVE
    The exception WRONG_ACCESS_TO_ARCHIVE is triggered if an archive is accessed using an incorrect or non-existing archive handle or an incorrect mode (that is, read if the archive is open for writing or vice versa).
    regards
    siva

  • How to make sales order entry mandatory in CO01

    Hi,
    I have a scenario where the system should not allow to create production order without the reference of sales order.
    I can achieve this by using transaction code CO08.But in some special cases i have to use CO01 transaction for creation of production order.Will the system prompt for sales order entry through Co01 transaction.
    Regards
    Sreenath

    Hy Sreenath,
    For this you have to use User Exit.
    -  Enhancement when Creating an Order :-
    PPCO0006 Enhancement to predefine fields in order header
    -  Enhancement During Order Release :-
    PPCO0021    Enhancement for Order Release
    Better will be create saprate Order type for such type of requirements and then include that order type in User Exit.
    Regards,
    Dhaval
    Edited by: Dhaval Choksi on Aug 7, 2008 6:12 PM

  • How to pull out Purchase Order text in ME11/ME12/ME13

    Hi,
    Kindly let me know how to extract Purchase Order text from TEXT tab in ME13.
    I have got Info Record note but I am unable to get Purchase Order text.
    I am using the following FM which is given below.It seems error.
    Please kindly let me know how to do this.
    CALL FUNCTION 'READ_TEXT'
             EXPORTING
                  client                  = sy-mandt
                  id                      = 'BT'
                  language                = sy-langu
                  name                    = g_tdname
                  object                  = 'EINE'
             TABLES
                  lines                   = ig_read1
             EXCEPTIONS
    Thanks,
    Bala Raja

    Your need to use READ_TEXT FM Properly:
    text name -> you need to concatenate info record ,plant '0'  purchase org
    language : EN
    text id BT
    Object EINE
    CALL FUNCTION 'READ_TEXT'
    EXPORTING
    client = sy-mandt
    id = 'BT'
    language = sy-langu
    name = g_tdname
    object = 'EINE'
    TABLES
    lines = ig_read1
    EXCEPTIONS
    Thanks
    Seshu

  • Updating Material master purchase order text -LSMW

    Dear Experts
    How can update Purchase order Text  through LSMW, while am doing recording system is not recording this field from material master
    Regards
    Ajeesh.s

    Dear Expert
    Please throw some light on this issue
    Regards
    Ajeesh.s

  • Purchasing order text

    hi friends
    how to upload purchasing order text in mm01 transaction.
    when i record purchasing order text it is storing in as a module pool program screen when i watch in the after recording , it does not have field  and table name.
    how to upload it?
    thanks&regards
    deepika

    Hi,
      You can use the function module CREATE_TEXT  for uploading the long text in the purchase order but this one has to be done after you have created the Purchase order succesfully. To use the above function module use the following steps.
    1) Upload the longtext seperately into an internal table using GUI_UPLOAD  and then use the following code to upload that text.
    TYPES : BEGIN OF ty_upload,
             matnr(18) TYPE c,
             txline(5000) TYPE c,
            END OF ty_upload.
    DATA : it_upload  TYPE STANDARD TABLE OF ty_upload,
                wa_upload  TYPE ty_upload.
    DATA : v_tdid     TYPE tdid,
                v_tdobject TYPE tdobject,
               v_en    TYPE   spras VALUE 'EN'.
            CALL FUNCTION 'IQAPI_WORD_WRAP'
              EXPORTING
                textline            = wa_upload-txline
                outputlen           = '132' ( Give the length depending upon your requirement)
              TABLES
                out_lines           = it_outlines
              EXCEPTIONS
                outputlen_too_large = 1
                OTHERS              = 2.
            IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
            ENDIF.
            v_sno = 1.
            CLEAR it_outlines.
            LOOP AT it_outlines.
              READ TABLE it_outlines INDEX v_sno .
              IF sy-subrc = 0.
                it_tlines-tdline = it_outlines-tdline.
                APPEND it_tlines.
                CLEAR: it_tlines,it_outlines.
                v_sno = v_sno + 1.
              ENDIF.
            ENDLOOP.
            CALL FUNCTION 'CREATE_TEXT'
              EXPORTING
                fid         = v_tdid
                flanguage   = v_en
                fname       = v_matnr
                fobject     = v_tdobject
                save_direct = 'X'
                fformat     = '*'
              TABLES
                flines      = it_tlines
              EXCEPTIONS
                no_init     = 1
                no_save     = 2
                OTHERS      = 3.
            IF sy-subrc = 0.
    Here if sy-subrc is Zero means the text is updated successfully.
    Here for getting the tdid and tdobject go to the Tcode ME21 and there inside that one get the values for them and in the PO text of the header text tab.
    Hope this one will help you.
    Regards,
    Venkat.

  • How to make tax classification field mandatory in sales order ?

    Hi,
    while creating sales order, " how to make tax classification field mandatory ".
    Please tell me the procedure.
    In tcode OVA2. what are the entries for fields,table.
    Regards,
    sapsduser

    Dear ,
    Could you please share why you want to make tax Classification field mandatory in sales order.
    Maintain Tax classification field for customer in Customer Master Data = (Sales Area Data - Billing document Tab page)
    Tax Classification field for Material in Material Master Data = Sales Org. 1 View.
    While creating sales order and enter customer and material system automatically fetch the tax classification related data into sales order.
    Tax is calculated based on the ship to party.
    Hope this will help you.....
    Regards,
    Manoranjan.

  • How to get Sales Text & Purchase Order Text in MM based on (MSEG-MATNR)

    Hi
      Am working on a Report based on Purchase order & Sales, Could any body tell How to get Sales Text & Purchase Order Text in MM based on (MSEG-MATNR).
    the Field i need to get are : SALES TEXT, PO TEXT.
    Sunil.

    Hi Sunil,
    For getting Material PO text and sales text, you have to rely on Purchase Order and Sales Order. And use READ_TEXT function module to fetch the text.
    Below are examples of PO text and Sales Text:
    1. PO text:
        CALL FUNCTION 'READ_TEXT'
         EXPORT
           ID = 'F03'
           LANGUAGE = SY-LANGU
           NAME = '450000011200010' conacte PO number and line item number
           OBJECT = 'EKPO'
         TABLES
           LINES = INT_TLINES "you will get text in this table
    2. Sales order text:
            CALL FUNCTION 'READ_TEXT'
         EXPORT
           ID = '0001'
           LANGUAGE = SY-LANGU
           NAME = '0000000036000010' conacte SO number and line item number
           OBJECT = 'VBBP'
         TABLES
           LINES = INT_TLINES "you will get text in this table
    ref: STXH and STXL tables.
    Hope it will solve the problem.
    Regards
    Krishnendu

  • How to download material sales text and purchase order text information

    Here is situation:
    goto MM03 transaction,
    Take any material -- and select below views
    1. sales text
    2. purchase order text
    i have to write the download program with the sales text and purchasing text information of all the materials.
    could you pls tell me in which table I will get all the above sales text and purchase order text infrmation.
    I think it will store in standard text. I checked STXH table also for getting information text object, text id, text name, language, etc.
    If anybody knows .. please share.
    Thanks in advance.
    Regards
    Raghu

    Declare internal tables as follows: - An example
    TYPES: BEGIN OF TY_PO_LINES,
         INCLUDE STRUCTURE TLINE.
         END OF TY_PO_LINES,
         TY_PO_LINES_T TYPE STANDARD TABLE OF TY_PO_LINES.
    TYPES: BEGIN OF TY_PO_TEXT,
           TDOBJECT TYPE TDOBJECT
           TDNAME TYPE TDOBNAME,
           TDID TYPE TDID,
           SPRAS TYPE SPRAS,
         TDLINES TYPE TY_PO_LINES OCCURS 0,
         END OF TY_PO_TEXT,
         PO_TEXT_T TYPE STANDARD TABLE OF TY_PO_TEXT.
    DATA: PO_TEXT TYPE TY_PO_TEXT_T
    PO text:
    Looping at your internal table which consists of PO number,
    SELECT TDID TDSPRAS FROM STXH INTO A INTERNAL TABLE say PO_TEXT
    TDOBJECT = EKKO "PO Header Text
    TDNAME = PO NUMBER
    SELECT TDID TDSPRAS FROM STXH INTO A INTERNAL TABLE say PO_TEXT
    TDOBJECT = EKPO "PO line item text
    TDNAME = PO NUMBER
    ENDLOOP
    Looping at PO_TEXT
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
         ID = PO_TEXT-TDID
         LANGUAGE = PO_TEXT-TDSPRAS
         NAME = PO_TEXT-TDNAME
         OBJECT = PO_TEXT-TDOBJECT
      TABLES
         LINES = PO_TEXT-TDLINES
    ENDLOOP
    Follow the same above logic for material with suitable TDID you need to extract
    Hope this helps,
    SKJ

  • How to make the LONG TEXT as mandatory

    Hi,
    In one tansaction, I need to make the LONG TEXT as mandatory.
    or
    I need to raise an Error message if the long text is empty.
    Thanks

    I want to make the long text mandatory in the transaction F-66.
    In this, long text field (text box) is not displaying directly for typing.
    We need to click on the button LONG TEXT, then text box is opening for typing.
    I need to make this as mandatory.
    Thanks

  • How to send purchase order via e-mail.

    Please could someone let me know how to send purchase order via e-mail.
    I am an BC.
    e-mailing is functionning however I am not very familiar in settings for MM

    No, you do not need to touch ME_PRINT_PO. You need to put code before and after ME_PRINT_PO in the print program.
    Step 1 - Copy the standard print program SAPFM06P to make a Z version, lets call it ZSAPFM06P
    Step 2 - Copy include FM06PE02 to make a Z version, lets call that ZFM06PE02.
    Step 3 - ZSAPFM06P change the statement "Include FM06PE02" to read "Include ZFM06PE02".
    Step 4 - In include ZFM06PE02 you will find a subroutine called "ENTRY_NEU". In this subroutine you will see it first calls ME_READ_PO_FOR_PRINTING then calls ME_PRINT_PO. Before it calls ME_PRINT_PO just put:
    l_nast-nacha = 1.
    CLEAR l_nast-dimme.
    This means that ME_PRINT_PO will not e-mail, it will create a spool request.
    Step 5 - Still in ZFM06PE02, after ME_PRINT_PO has been called, add new code. First check that ent_retco EQ 0. If it does not then exit.
    Step 6 - Get the spool ID created by ME_PRINT_PO by either moving sy-msgv1 to a variable or select from NAST.
    Step 7 - Call function CONVERT_OTFSPOOLJOB_2_PDF using the spool ID from step 6, and put the result from table PDF into an internal table you can use later. ALso store the export variable pdf_bytecount, you will need it later.
    Step 8 - Call function SX_TABLE_LINE_WIDTH_CHANGE using the table from step 7 as content_in and put the results from content_out into a new internal table.
    Step 9 - Add some text into a internal table of type solisti1, this will be the body text of the e-mail.
    Step 10 - Add whatever receivers you want into an internal table of type somlreci1. If you just want it to go to the address that the PO would have gone to anyway, select the e-mail address from ADR6 where the address number = l_doc-xekko-adrnr, that is the data from the PO.
    Step 11 - Populate an internal table of type sopcklsti1 with data relevant to your PDF table from step 8 and the text table from step 9. You will have to put the size of the PDF from step 7 (pdf_bytecount) on the PDF line and the size of the text will be the number of lines of text * 255.
    Step 12 - Add info to a structure of type sodocchgi1. You can add the e-mail title in here, field obj_descr. Also add the size of the PDF and the size of the text from step 12 into doc_size, and give the doc a name in field obj_name. This can be anything, ZPDFPO for example.
    Step 13 - Call SO_DOCUMENT_SEND_API1 using the tables from steps 8, 9, 10 and 11 and the structure from step 12. You can amend the sending e-mail also. Set commit_work to space.
    Step 14 - That is all you need, but I actually call function RSPO_R_RDELETE_SPOOLREQ to delete the spool request created in step 4, then call NAST_PROTOCOL_UPDATE to add some more messages to the processing log of the PO.
    That is all.

  • Material Master - Purchase order Text view as plant specific

    Is there any provision in standard SAP to make Material Master u2013 Purchase order Text view as plant specific.
    Example: Material Master u2013 Sales text view is sales org & Distribution channel specific and the sales text is unique of each of the sales org and distribution channel combination.
    i.e, if we change sales text for a sales org and distribution channel combination, it will not affect the sales text of another sales org and distribution channel combination.
    Similarly, can we make the Purchase order Text view as plant specific? How to achieve this?
    As of now, if we change the text for one plant, it will be affected to all other plants also.

    Hi Pankaj, thanks for the reply.
    The solution you have given is applicable if the info record PO text is used only in Purchase order?
    Moreover, we are not using plant specific info records.
    We want to use material master PO text for some other custom transactions.
    Please give your inputs.
    Thank you.

  • Upload Purchase order text tab using BDC

    Is it possible to upload Purchase order text tab in material master (tcode mm01) using a BDC.
    If so pls tell me how to upload the same, what is the field name of the box.
    Regards,
    Senthil

    u need to use READ_TEXT or SAVE_TEXT or WRITE_TEXT or COMMIT_TEXT to upload text into SAP.

Maybe you are looking for

  • Lumia 620 Following Denim Update

    Looking for help with the following issue. Prior to Denim, whenever I made an in car call using bluetooth, the details of the person I was calling would appear on screen (even if Glance was on). Following Denim, whenever I make an outgoing call, the

  • Multiple JVMs on Solaris 10 (x64)

    I just downloaded the new 1.6 JDK, but when I went to install it I became confused. /usr/java is a symbolic link to jdk/jdk1.5.0_11, which is itself a symbolic link to /usr/jdk/instances/jdk1.5.0. Then, to further muddy the waters, /usr/j2se is actua

  • Help!....I need a copy of Desktop V4.2

    Hi all, I am stuck running Outlook 2000 and need to locate a compatable copy of Desktop manager V4.2. Unfortunately, I cannot seem to find a "clean" copy anywhere. Any help would be appreciated. Bud 

  • When trying to buy a Photobook all the buying info is in German

    I made a Photobook and when I tried to buy it, the info is in German and the prices in Euros, where can I change the settings to the US?

  • Making debug information display - more questions

    Hi all - I work on a remote CF server and need debugging information displayed at all times. Unfortunately, I lost my dedicated IP address which could be plugged into the server, which gave me the privilege of seeing the information i need. Earlier t