on 08-10-2011 7:12 AM
Hi Experts ..
Please help me out <priority normalized by moderator>
in smartform , i have one template . type = table type template.
i have one table line .
then i created a loop , to take internal table content to wa. and outputing wa elements in text elements .
now in table line with 6 cells. i have to display 2 components of wa.
so i created a text element , in its option selected new line , gave table line name and checked on new cell and also clicked on skip 2 cell as it is a requirement to output wa component in 3rd cell .
i again created one more text element , clicked on new cell , clicked on skip 1 cell . as per requirement .
now one cell remains in that smartform displaying 3stars ... *****. i dont want to display it .
sometime ago it was working fine , but now it is showing 3*** in last cell of table line .
please help me <priority normalized by moderator>
Edited by: Vinod Kumar on Aug 10, 2011 12:19 PM
Hi Akshay,
check below 2 scenarios:
1.
some times it may happen for the field length. i.e. your displaying length is shorter than the field content legth. Suppose your field ITAB-NO contains the value 55555 but you are displaying length 2 like WRITE : / 3(2) ITAB-NO. here you can get a * before 5. Because you are specifying length 2 for displaying the itab-no. Just check the length of those fields which are giving you * and increase the displaying length.
2.
Akshay wrote:
>no man its and error ...i dont want to display anything in that cell . it is showing (***). not 3*.
If you dont want to print any thing in that cell dont have any text elements or anything under that cell .
BR
Dep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Akshay,
See to that you use only one line type to print header data .
BR
Dep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Deepak ,
I solved this problem ,, the error was in internal table .
there were 2 line types in template and 2 internal tables filling them .
these internal tables are filled by one deep database strucutre which comes in form interface of standard SF.
IS_BIL_INVOICE type LBBIL_INVOICE.
and in 1st internal table i gave this condition.
GS_IT_KOND is first internal table.
IF GS_IT_KOND_Wa-KMEIN IS INITIAL .
GS_IT_KOND_Wa-KMEIN = '-' .
ELSEIF GS_IT_KOND_Wa-KMEIN eq ' ' .
GS_IT_KOND_Wa-KMEIN = '-' .
ENDIF.
When i commented this code . *** were gone .
and i think but i am nt sure this internal table may be overflown and fillled *** in 2nd internal table.
Hi Akshay,
Below is the reason for three stars!!.
REPORT ZDEP.
DATA i_vbap TYPE STANDARD TABLE OF vbap WITH HEADER LINE.
SELECT vbeln
posnr
kmein
INTO CORRESPONDING FIELDS OF TABLE i_vbap
UP TO 10 ROWS
FROM vbap WHERE kmein ne space.
LOOP AT i_vbap.
i_vbap-kmein = '-'. " here you to pass max of 3 char like EA, KG, PAK etc. or give space, then u'll not get three stars
modify i_vbap.
WRITE / i_vbap-kmein.
ENDLOOP.
KMEIN is Condition unit and it expect values like EA, KG or PAK etc. or space.
So when ever your updating KMEIN pass value like above you willnot get error.. oops!! 3 stars:)).
REPORT ZDEP.
DATA i_vbap TYPE STANDARD TABLE OF vbap WITH HEADER LINE.
SELECT vbeln
posnr
kmein
INTO CORRESPONDING FIELDS OF TABLE i_vbap
UP TO 10 ROWS
FROM vbap WHERE kmein ne space.
LOOP AT i_vbap.
i_vbap-kmein = space.
modify i_vbap.
WRITE / i_vbap-kmein.
ENDLOOP.
check above codes your issue will be resolved.
BR
Dep
Hi Akshay,
For which field are you getting '*' symbol ?.
And did you try:
clear wa-compenent.
and are you using events or calculations ?.
BR
Dep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Akshay,
If you want to change '3**'to 3.
then do like below in program lines:
SHIFT wa-component LEFT DELETING LEADING '*'.
SHIFT wa-component RIGHT DELETING TRAILING '*'.
Let me know if any issue.
BR
Dep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Akshay,
Just before text element insert a Program lines and clear the work area compoment.
In one cell:
1. Program lines .
clear wa-component.
2. text
& wa-component&
BR
Dep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.