cancel
Showing results for 
Search instead for 
Did you mean: 

Write to Tables from SmartForm

Former Member
0 Kudos

Hi All,

I am new to SmartForms, and want to know if it is possble to write to an SAP table from a SmartForm.

Points rewarded for help.

Thanks in advance,

Sixtus

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sixtus,

It is not possible . Smartforms are viewing the Data in a Print layout format and you can pick the data from the tables and print it in smartforms.

if you give me brief i can help you out more.

if helpful REWARD points

Thank you .

Regards

Ramana

Former Member
0 Kudos

Thank you all for your responses. I have also been told by my colleages that this is not possible. What I am trying to do is create a SmartForm that will display data in a print layout form like Ramana says. At the same time I want to include some code that will insert data in a custom table that I created. I suppose I will have to write a separate program to insert this data since it seems like this data cannot be inserted directly from the SmartForm.

Thanks,

Sixtus

Former Member
0 Kudos

Hi Sixtus,

I may be missing something here, but I don't see why you can't do what you want. It is possible in the Smartform to create a piece of ABAP code and use all convetional ABAP commands. There's nothing to stop you from using this to fill a work area and using INSERT or MODIFY to update your custom table, you could even create a function module and call this to do the update.

Try it, it should be possible. The only limit I can think of is in the context of the driver program not reacting well to the commit.

Regards,

Nick

Former Member
0 Kudos

Thanks for your optimistic response Nick. I'll have to try this out. Once again, I'm pretty new to SmartForms so it may take me a minute to figure out where I can create the ABAP code.

Thanks again,

Sixtus

Former Member
0 Kudos

You were right Nick. I didn't realize code could be inserted so easily in SmartForms. Although it can be done this way, I think it's actually better to place this code in the function module that calls the SmartForm rather than the SmartForm itself. I'm awarding the solution of this problem to you.

Thanks,

Sixtus

Edited by: Sixtus Iwu on Jan 21, 2008 2:12 PM

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Sixtus,

U can use table in smartform, and u can pass the table value into smart form. But u can't create the table in smart form. U can find one TABLE option in window, that's only for creating the tab and u can pass the table values in the tab. If u have any clarification let me...

Regards

Saran

Former Member
0 Kudos

hi,

ur question is not clear,

still if u want create SAP table from samrtform then that is not possible to create table from smartforms.

reward points if useful,

seshu.