Application Development 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: 

Regarding calling fields of table from SM30

Former Member
0 Kudos

Hi Everyone,

I have cretaed a table with 3 fields,

1. Order ttype

2. Material Number1 (US)

3. Material Number2 (NONUS)

i have to create a program which calls these fields in the table. The entries are maintaned at SM30.

I hvae to put some logic in the program using these fields to call a sapscript.

Can anyone please help me.

Thank you

Deepthi Sripuram

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

You are using a program generated by the table maintenance generator and using SM30 to maintain, and you want to put code in it to kick off a sapscript?

Regards,

Rich Heilman

6 REPLIES 6

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

You are using a program generated by the table maintenance generator and using SM30 to maintain, and you want to put code in it to kick off a sapscript?

Regards,

Rich Heilman

0 Kudos

Rich

No ..I have created a table with these 3 fields.

Now i have a different program that is used to kick off a sapscript.

I should write a logic based on the entries in the table.

How do i call the values of the table from that SM30 into my driver program for printing a script?

0 Kudos

So when you are maintaining this table via SM30(which is a table maintenance progam generated by TMG(SE11)), you want to get the data entered for each row and kick off a sapscript, right?

Or are you merely asking how to retreive the values from the table in your print program? If so, you can simply use a SELECT statement to get the data into your program.

Confused........,

Rich Heilman

0 Kudos

Rich

Thanks

I understood. I was misunderstanding myself.

I have given points to all of you for helping me .

Thanks Everyone

Deepthi

Former Member
0 Kudos

Deppthi,

write a select stmt on the table based on your conditions and then U can use the populated valus in SAP script.

Hope this will help!!

Former Member
0 Kudos

Hi,

Get the data to an internal table itab

EXPORT Itab TO MEMORY ID 'SAP'.

SUBMIT Zscriptdriverpgmname and RETURN.

In the script driver program

use

start-of-selection.

IMPORT Itab TO Itab FROM MEMORY ID 'SAP'.

Thanks

VENKI