Skip to Content
author's profile photo Former Member
Former Member

How to default PO item text

hi all,

i am a noob in ABAP, i am hoping all you experts can help me to solve my problem...

i want to default PO item text while i adding each line item, i tried to do it in BADI ME_PROCESS_PO_CUST~PROCESS_ITEM,

LS_LINE-TDOBJECT = 'EKPO'.

LS_LINE-TDID = 'F01'.

LS_LINE-TDFORMAT = '*'.

LS_LINE-TDLINE = 'This is an asset purchase. Please BILL SEPARATELY.'.

APPEND LS_LINE TO LT_LINE.

CALL METHOD IM_ITEM->IF_LONGTEXTS_MM~SET_TEXT

EXPORTING

IM_TDID = 'F01'

IM_TEXTLINES = LT_LINE.

but this do not work when i first type in all the value of the line item, then i run in debug mode to see whether my code is executed, the answer is yes... my code is executed but dont know why the item text is still blank.

i can say my code is correct because when i try to change again the value of that particular line item, the item text is defaulted now.

so i am not sure whether after my first time default code is executed, is there any part of the sap program clear up the item text?

or please advise me which user exit / badi i should use?

thanks a lot for your help

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 12, 2009 at 05:05 AM

    Hi Use BADI : ME_PROCESS_PO_CUST>> Method : PROCESS_ITEM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 12, 2009 at 05:41 AM

    hi thanks for you fast reply,

    but my problem still not solved, i am using that badi you mentioned, it can work only when i second time change the value of that particular po line item, i dont know why it cant work while i first adding the line item... any idea?

    thanks.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 12, 2009 at 05:56 AM

    hi Gautham Vangaveti,

    can you explain more about the SAVE_TEXT you mentioned? how to use it? can give me example?

    thanks.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 19, 2009 at 04:05 AM

    Hi all,

    is there anybody tried default the PO item text before? i am still struggling with this....

    please help...

    thanks.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.