cancel
Showing results for 
Search instead for 
Did you mean: 

smartform problem with <FS> [short dump]

Former Member
0 Kudos

Hi Abapers,

Am using <FS> in my smartform

it is using as Work area.

Bcoz my line item data Containing Amount and Quantity fields.

so when am not using <FS> i.e., if am declaring WA like <struc>

then its giving error message like Quantity does not exist.

when for is printing.

so thats why am using <FS> as my Work area.

when am looping my table data into <FS>.

for my main window table.

so when ever am having no line item data with respect to my Selection screen.

Then my line item internal table is empty in my driver program.

so when it comming to smartform <FS> is empty

then my form is going to Shortdump.

so how can i over come that it should not go to shortdump

even my line item data is not having records.

Pls give me any solution .....!

Thanks & Regards,

Rajeshk

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks for ur immd. response.

Actually am not having problem with Quantity and Currency fields.

My form is executing alright.

But ,

when ever am having no line item data with respect to my Selection Criteria.

Then my line item internal table is empty in my driver program.

so when it comming to smartform <FS> is empty

then my form is going to Shortdump.

I think you under stood my problm.

ThankQ

Former Member
0 Kudos

Hi,

so when it comming to smartform <FS> is empty

then you can check sy-subrc and put MESSAGE 'NO data found'.

Regards,

Manjula

Former Member
0 Kudos

Hi

In Global Definition, There is a tab called Currency/Quantity Fields, here you have to give your currency and quantity fields and under Reference fields you have to give the Standard Currency/Quantity field.

Regards,

VIshwa.

Former Member
0 Kudos

Hi,

Check while u are Declare the Amount filed as a CUR and

Quantity field as a QUN,

In Global definition..

Regards

swamy