cancel
Showing results for 
Search instead for 
Did you mean: 

stars( '***' ) in cell of template in SF.

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

man , there is the problem lies , i didnt specify any field in that cell . nor any text elements to that cell . still it is filled with ***.

Former Member
0 Kudos

Hi Akshay,

If you can, just upload the screen shot of your error via below link and post it here:

[http://imageshack.us/]

BR

Dep

Former Member
0 Kudos

Hi Deepak ,

below are the screenshots of the error i am encountering in sf.

[http://img705.imageshack.us/img705/7613/48117583.jpg]

Former Member
0 Kudos

Hi Akshay,

well.. tell me have you used LOOP or TABLE to print table data ?.

BR

Dep

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Akshay,

See to that you use only one line type to print header data .

BR

Dep

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Deepak ,

Thanks for help .

the code i mentioned in previous reply was in the loop only......i was updating KMEIN in loop only..

still was facing the problem ..

when i commented that code .. issue resolved ...

Former Member
0 Kudos

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

Former Member
0 Kudos

yes man i ve tried clear wa-component but it didnt work .

For which field are you getting '' symbol ?.*

i am not using any of the field man, where i am getting that ***.

also there is not text element for that *** cell.

Former Member
0 Kudos

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

Former Member
0 Kudos

no man its and error ...i dont want to display anything in that cell . it is showing (**). not 3.

Former Member
0 Kudos

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

Former Member
0 Kudos

hi deepak ..

but if i clear wa component , then how would i fill it up ...

did you occured wit this error in sf ?