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

Doubt in SAP-Scripts

Former Member
0 Likes
1,284

Hi I have a small doubt in Scripts

In scripts i have to pass a new table and field which was not at all declared in the scripts previously so how to add new table in scripts. Can we directly add table and field name like this &BSAS-AUGBL& this table havnt declared previously i want to add this table how can i add please help me

14 REPLIES 14
Read only

Former Member
0 Likes
1,256

if you have declared that table globally in your border-program, sap-script will know the table then.

i think that solves you question already

if not ask again

Read only

0 Likes
1,256

Hi Mr.Florian can u explain me what is border program

Read only

0 Likes
1,256

oh sry, that was just a literal translation of the german word for it.

actually i mean the print program.

Read only

0 Likes
1,256

Hi Florian i have declared like that only actually i have to add a field " Invoice number" which i had added directly but when i was trying to fetch the data from this Table bsas and the field is augbl but it was not giving any data from this table when i had tried by declaring another table in the same position then it was displaying the output.

Read only

Former Member
0 Likes
1,256

Hi Pavan,

You cannot pass this field directly in sap script. You need to declare the field in print program & you also need to fill the data in field. then only this field will be getting printed otherwise it will be initail.

Ashven.

Read only

0 Likes
1,256

where i have to declare can u expalin clearly plzzzzzzz

Read only

p291102
Active Contributor
0 Likes
1,256

Hi,

In my point of you, u have to select one field from one db table means.

First define the table in your report after that in form for which window u have to display that field like

For example

  • &t001w-werks&

like that u can put in your forms.

Thanks,

Shankar

Read only

Former Member
0 Likes
1,256

Hi Shankar i have declared like that only actually i have to add a field " Invoice number" which i had added directly but when i was trying to fetch the data from this Table bsas and the field is augbl but it was not giving any data from this table when i had tried by declaring another table in the same position then it was displaying the output.

Read only

Former Member
0 Likes
1,256

I CANNOT UNDER STAND WHY ARE YOU USING THIS TABLE FIELDS HERE AND AS PER SAP SCRIPT WE ARE CALLING IT AS SYMBOL. IF IT IS PRESENT IN YOUR PRINT PROGRAM THEN WE ARE CALLING IT PROGRAM SYMBOL AND IT IS GETTING THE VALUE FROM YOUR PRINT PROGRAM TO SCRIPT.

YOU CAN DECLARE YOUR TEXT SYMBOL IN SCRIPT ALSO BUT IN THIS CASE YOU HAVE TO GIVE THE VALUE EXPLICITLY.

/: DEFINE &ABCD& = 'TEST'

NOW YOU CAN USE ABCD AND IT WILL PRINT IN SCRIPT.

REGARDS

SHIBA DUTTA

Read only

0 Likes
1,256

Hi i have declared like that only actually i have to add a field " Invoice number" which i had added directly but when i was trying to fetch the data from this Table bsas and the field is augbl but it was not giving any data from this table when i had tried by declaring another table in the same position then it was displaying the output.

and one more thing i havnt understood your statement

I CANNOT UNDER STAND WHY ARE YOU USING THIS TABLE FIELDS HERE AND AS PER SAP SCRIPT WE ARE CALLING IT AS SYMBOL. IF IT IS PRESENT IN YOUR PRINT PROGRAM THEN WE ARE CALLING IT PROGRAM SYMBOL AND IT IS GETTING THE VALUE FROM YOUR PRINT PROGRAM TO SCRIPT.

Read only

0 Likes
1,256

WHATEVER YOU ARE SAYING &BSAD-AUGBL& IN SCRIPT THAT IS CALLED A SYMBOL.

IF INYOUR PRINT PROGRAM YOU ARE FETCHING THE VALUE TO THE FIELD BSAD-AUGBL THEN ONLY THAT VALUE WILL REFLECT IN THE PROGRAM SYMBOL &BSAD-AUGBL& AND IT WILL DISPLAY. I THINK IN YOUR PRINT PROGRAM THIS AUGBL IS TAKEN FROM SOME OTHER TABLE SO WHEN YOU ARE SHOWING THAT PROGRAM SYMBOL IT IS SHOWING THE DATA.

PRINT PROGRAM.

SELECT AUGBL INTO BSAD-AUGBL FROM BSAD ...IF THIS STATEMENT IS THERE IN YOUR PRINT PROGRAM THEN ONLY IT WILL SHOW THE DATA IN SCRIPT ELSE NOT.

REGARDS

SHIBA DUTTA

Read only

0 Likes
1,256

K thanks for your suggestion i really dont know that & BSAS-AUGBL& is called as symbol.

and one more thing can u say me from where can i get this print program plz really i dont know from where i have to do modifications plz dont feel bad as i dont know about script so i asked you so plz give me idea from where i have to include this table BSAS

Read only

0 Likes
1,256

SORRY YOU CANNOT ADD THAT BUT YOU CAN USE PERFORM ENDPERFORM FOR THAT.

JUST CHECK THIS LINKS

<a href="http://sapscript.tripod.com/SAPScript-43.htm">http://sapscript.tripod.com/SAPScript-43.htm</a>

<a href="http://wiki.ittoolbox.com/index.php/HOWTO:Sap_script">http://wiki.ittoolbox.com/index.php/HOWTO:Sap_script</a>

<a href="http://membres.lycos.fr/jolyeric/SAP/Note_de_Cours_Ben/Sapscript/SAPscript_Control_Commands.doc">http://membres.lycos.fr/jolyeric/SAP/Note_de_Cours_Ben/Sapscript/SAPscript_Control_Commands.doc</a>

REGARDS

SHIBA DUTTA

Read only

0 Likes
1,256

Hi none of the sites are working can u provide more sites plzzzz