Skip to Content
avatar image
Former Member

Regarding Material PO Text

Hi SAP Gurus,

In a smartform of Purchase Order, i have to display the ITEM TEXT and MATERIAL PO TEXT which is given in ME22N.

So, in smartform i have created a Text element , given it as type Include text given the necessary things.

Now the problem is I am able to see both the texts in Development, But in Production I am not able to see the Material po text.

Please help!

Thanks & Regards,

Pavan

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 19, 2009 at 09:13 AM

    Hi Pavan,

    Have you created any standard text in the development, If yes...

    Standard texts are client dependent, you need to transport it to quality and production also.

    Regards,

    GR

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Tayab Shah

      Thanks,

      The text which i have to print is not from the hardcoded text , it should be printed from the text which is given Material Po text coloumn of ME22N.

      If you go into ME22N , In item > Texts >Material PO Text , i am giving some text which should be printed.

      Please help!,

      Thanks & Regards,

      Pavan.

  • avatar image
    Former Member
    Aug 19, 2009 at 12:17 PM

    Hi ,

    Use Read_Text Function Module and pass the TEXT ID , Language , TEXT OBJ. Ur text obj will be concatenate of Header and Item number (LV_NAME).These things can be get from ur Display button of the Texts ---> Matrial PO Text and Double click there it takes u to the Editor GOTO --- > Header u will find the Text Id and Text Obj

    concatenate ekko-ebeln ekpo-ebelp to lv_name

    CALL FUNCTION 'READ_TEXT'

    EXPORTING

    CLIENT = SY-MANDT

    ID = 'F01'

    LANGUAGE = SY-LANGU

    NAME = LV_NAME

    OBJECT = 'EKKO'

    • ARCHIVE_HANDLE = 0

    • LOCAL_CAT = ' '

    • IMPORTING

    • HEADER =

    TABLES

    LINES = IT_TLINE

    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.

    Note : Uncomment the Exceptions its mandatory

    Declare IT_TLine type Table of TLINE in ur Form Interface or Global Definitions

    and then create a loop and loop it_tline

    and under the loop create a text and drag and Drop the field name as IT_TLINE-TDLINE

    into ur TEXT editor and give condition in Condition Tab IT_TLINE[] NEQ Space

    Regards,

    Vijaya Lakshmi.T

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Thanks,

      Text for po is maintained , but i am not able get i think configuration changes are to be made.

      Thanks & Regards,

      Pavan.

  • Aug 20, 2009 at 06:37 AM

    Hello,

    Please check whether Your FConsultant configured TEXT 's, if yes check the same in production as well, other wise go maintain it in VV_166K_VF(ask him to check SPRO ) .

    ex

    1 NB EKKO F01 Standard PO Header text

    1 NB EKKO F02 Standard PO Header note.

    If they configure it properly, through ICLUDE TEXT we have to pass TEXT ID and NAME in SMARTFORM.

    no need to write READ_TEXT.

    Regards

    AEDA N

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Thanks a lot ,

      It was very useful ,

      I have checked in that table but i have not found the entry for material PO text(F03) , but it is maintained in ME22N.

      Plz Help,

      Thanks & Regards,

      Pavan.

  • avatar image
    Former Member
    Aug 20, 2009 at 08:26 AM

    Hi Pavan ,

    Did u transport the Standard text to the testing client

    ,

    if not then transport it first

    for doing so you need to add this stanadard text to transport request , task

    execute a report 'RSTXTRAN'

    then transport your standard text ,

    just try this.

    regards

    Prashant

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 22, 2010 at 07:37 PM

    Line item text is pulled from the material master PO text into the purchase order. However, depending on cfg, the text isn't always in the purchase order, but is just being references from the masterial master....these may not print in Smartform from PO depending on CFG.

    If you use the following then the text is always copied to purchase order at creation time. Then will always print.

    The text is fixed (indicator " ")

    The text is copied into the document. Changes to the document text do not have any effect on the original text and changes to the original text have no effect on the document text.

    Check under SPRO > purchase order > Texts for Purchase Orders --> Define copying ruls for Item Texts.

    Hope this helps. I learned this the hard way.

    Add comment
    10|10000 characters needed characters exceeded