11-28-2007 11:39 AM
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.
11-28-2007 11:44 AM
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
11-28-2007 11:42 AM
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
11-28-2007 11:43 AM
11-28-2007 11:44 AM
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
11-28-2007 11:59 AM
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
11-28-2007 12:08 PM
hi,
call function 'READ_TEXT'.
...
if sy-subrc <> 0.
<b> remove the system messages.</b>
message ...
else.
endif.
regards
Santosh
11-28-2007 12:12 PM
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
11-28-2007 12:21 PM
11-28-2007 12:31 PM
11-28-2007 1:04 PM
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
11-29-2007 4:10 AM
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???
11-29-2007 4:39 AM
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
11-29-2007 5:26 AM
Hi Solved it...
Actally i shud have passed &VAR5&.....
tHANX EVERYONE..