cancel
Showing results for 
Search instead for 
Did you mean: 

SmartForm - se11 passing fields type QUAN and UNIT problem

Former Member
0 Kudos

Hi.

I'm building a SmartForm, that receives a table from a ABAP Program.

I've created a Structure (se11), exactly with all the fields like the ones that the program send in a TABLE. It has two related fields (QUAN and UNIT)

In the structure, i have this two fields (named QTD,UM) , and in QUAN after double click, i put in Reference field the name of the structure and the name of the UNIT (UM).

In the SmartForm, i've a table with loop that print's all the fields, except these two, it gives no error,

I've tried in two diferent ways.

With direct reference to tabel field. ex: TABLE-QTD, TABLE-UM

But QTD put's '**' and UM '**PC ', PC is a unit value but it seems that something is coming from QTD.

Another way was, to create two variable in Global definitions, and in CODE node put :

temp_QTD = TABLE-QTD.

temp_UM = TABLE-UM.

Result: QTD gives numbers. ex: '2020.202.020,00', UM '***', the 'PC ' or 'UN ', comes in the follow fields.

This all comes with no error.

With debug in the ABAP program, the output table, has the right info. I assume that is the Structure that has some kind of bad definition.

Any ideas ?

Thanks

Antonio

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

It's working ok.

thanxs

Former Member
0 Kudos

Hi,

Your problem will solve with your second way.

Define your temp variables with char type in global definations and then in code node move to the temp variable.

And then print your temp variable.

Reward points if useful.

Thanks,

Saroj.