Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Error while fetching header text.

Former Member
0 Kudos

Hi Guys,

In my PO form ... while printing its giving me error sayin :

text490000004 ID F01language EN not found.

I know its coming because of Header text is not maintaine for this particular PO.

But what I want is...to bypass this error....ie....when header text is maintained it shud print the same and when it is not maintained it shud bypass this error, and print rest of the form..

How to do this...pls help..

Regards,

Dhananjay.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Dhananjay,

In the text node of that header text there is an option 'No error if no text exists' in the general attributes of the text node, tick that checkbox.

Reward Points if this helps,

Satish

12 REPLIES 12

Former Member
0 Kudos

Hi,

There is a check box which says no errors is not exits, click on the checkbox then the error will be bypassed in Smartforms.

regards,

santosh Thorat

Former Member
0 Kudos

check the' no error if no text' check box.

regards,

Former Member
0 Kudos

Hi Dhananjay,

In the text node of that header text there is an option 'No error if no text exists' in the general attributes of the text node, tick that checkbox.

Reward Points if this helps,

Satish

0 Kudos

Hi,

You r talking about which transaction..

Smartforms or PO creation(ME21N)

IN sMARTFORMS i am not able to find any such checkbox...

In general attributes it shows...

text type......text element

text node....new paragraph(radibutton)

an below normal text editor..

In my driver program i have extracted the Header text using 'Read text' function module..an stored into variable... that variable is being imported by smartform and displayed with text elemnt.

Pls help..

Message was edited by:

Dhananjay Patil

Message was edited by:

Dhananjay Patil

0 Kudos

hi,

call function 'READ_TEXT'.

...

if sy-subrc <> 0.

<b> remove the system messages.</b>

message ...

else.

endif.

regards

Santosh

0 Kudos

Hi Santosh,

Thanx....but

I already commented those messages.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Pls help.

Message was edited by:

Dhananjay Patil

0 Kudos

Hi Guys..

Any work-arround possible..

0 Kudos

Hi...

Its urgent...pls help...!

0 Kudos

Hi,

in the text node you will have a box with title text key, under that you will have Text Name, Text Object, Text ID and Language, under language you will have a check box with No error if no text exists. Just tick that check box.

Is your text type is Include text?

If it is not the include text make it as include text and just pass below values to the fields

Text Name: PO Number(Which you will get from Print program)

Text Object: EKKO

Text ID: F01

Language: EN

Reward Points if this helps,

Regards,

Satish

0 Kudos

HI Satish,

Thanx for ur reply...... I have done the modification suggested by u... So now no error message is coming..

I have passed following parameters :

Text name = var5....( GETTING FROM PROGRAM )

Text object = ekko

text id = F01.

LANGUAGE = EN.

But still in the Form, the Header Text Though it is mainatined in PO, is not getting printed...

Pls help.. ANY SUGGESTIONS GUYS???

0 Kudos

Hi Guys..

When I tried debugging smartform ...

I found that when Its fetching the text using some standard function module

Instead of value in the Import field var5 it is passing I_ebeln(text)..

%TEXTKEY-OBJECT EKKO

%TEXTKEY-ID F01

%TEXTKEY-NAME VAR5

(instead of 'var5'....'4700000011' shud be passed..)

%TEXTKEY-LANG E

Hence its unable to fetch the header text

When I manually editeed var5 to '4700000011'(po number)..... it worked just fine..printing text to smartform...

Pls help guys what shud be modified in the text so that value will be passed..

Message was edited by:

Dhananjay Patil

0 Kudos

Hi Solved it...

Actally i shud have passed &VAR5&.....

tHANX EVERYONE..