Application Development and Automation 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: 
Read only

regarding text node in events in smartforms

Former Member
0 Likes
1,534

hi experts,

in my smartforms i have clicked event on sort end checkbox and if i rt click on this event to create text but here the text node is not coming how to create text node in event plz let me know......

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,488

You have to first create a table line, as this event is part of your table output. Once you have a table line you can create a text element in on of the row's cells.

Regards,

Nick

hi experts,

in my smartforms i have clicked event on sort end checkbox and if i rt click on this event to create text but here the text node is not coming how to create text node in event plz let me know......

13 REPLIES 13
Read only

Former Member
0 Likes
1,489

You have to first create a table line, as this event is part of your table output. Once you have a table line you can create a text element in on of the row's cells.

Regards,

Nick

Read only

0 Likes
1,488

hi nick,

in the event i created table line and i created text after execution it is giving this error::::as in the sort criteria i ticked mark event on sort end :::

the error:

ShrtText

Syntax error in program "/1BCDWB/SAPLSF00000211 ".

What happened?

Error in ABAP application program.

The current ABAP program "ZRAW_PRODUCTION_REPORT_SFM" had to be terminated

because one of the

statements could not be executed.

This is probably due to an error in the ABAP program.

In program "/1BCDWB/SAPLSF00000211 ", the following syntax error occurred

in the Include "/1BCDWB/LSF00000211TOP " in line 81:

"Field "ITAB_FINAL_SFM" is unknown. It is neither in one of the specifi"

"ed tables nor defined by a "DATA" statement. "DATA" statement."

" "

" "

Author and last person to change the Include are:

Author "VISA_ABAP "

Last changed by "VISA_ABAP "

Error analysis

In program "/1BCDWB/SAPLSF00000211 ", the following syntax error occurred:

"Field "ITAB_FINAL_SFM" is unknown. It is neither in one of the specifi"

"ed tables nor defined by a "DATA" statement. "DATA" statement."

" "

" "

Read only

0 Likes
1,488

The content of the short dump would suggest that the field you have specified for the event does not exist in your table.

The short dump names the field as "ITAB_FINAL_SFM". Is this the field you have specified for your sort criteria?

regards,

Nick

Read only

0 Likes
1,488

i have specified <b>matnr</b> in sort criteria

Read only

0 Likes
1,488

Then your dump might not be related to the sort criteria. You'll need to find where in your form you use the field ITAB_FINAL_SFM and investigate that.

Regards,

Nick

Read only

0 Likes
1,488

you know nick itab_final_sfm is my internal table with the help of which i m showing the output,and whenever i click event <b>on sort end</b> it gives me short dump...........

Read only

0 Likes
1,488

When you check this event the following is added at the end of the data declaration of the generated function module,

DATA: BEGIN OF %SE1,

FIRST,

ACT LIKE W_TAB,

SORT001,

END OF %SE1.

Where W_TAB is the work area you are using to read your table. It is this code that is causing the dump.

It is based on the value in the 'Data' tab or your table,

Internal table <i>my_tab</i> into W_TAB.

How is this expressed in your form? Is your work area defined in global data?

Regards,

Nick

Read only

0 Likes
1,488

actually i m using<b> itab_final_sfm into itab_final_sfm</b> in the internal table chekbox ,i m using header not workarea......

Read only

0 Likes
1,488

Then this is the problem, you cannot loop through a table in Smartforms and assign each line into iteslf, I'm surprised this works at all. You need to declare a work area in your global data with the same structure as your table ITAB_FINAL_SFM and use this as the INTO structure.

Points if this helps.

Regards,

Nick

Read only

0 Likes
1,488

dear nick,

actually i declared in tables tab "itab_final_sfm" like "zrawstock" where zrawstock is a structure now in global data i will declare "wa_itab type zrawstock" is it a rt way of declaring workarea.

Read only

0 Likes
1,488

That's right.

Read only

0 Likes
1,488

THNX NICK thnx alot that error has gone but material wise totaling is not coming it is coming like this for first material the total quantity is coming in next row , then for second material his total quantity is coming but it is also adding the quantity of first quantity into it.....

Read only

0 Likes
1,488

This is controlled by the settings in your Calculations tab. SaiRam has given you some detail on how to use this in your other thread,

I also put some explanation into a thread yesterday on how this is used, but the search doesn't seem to be working at the moment, so I can't find it. As I recall you'll need to fill the final two columns in this tab to reset the total for each material.

Regards,

Nick