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

SAP script.

Former Member
0 Likes
524

Hi All.

pls explain this code.

Its from SAP script (Edit text)

&j_1iexcdtl-maktx&,,&j_1iexcdtl-Chapid(12)&,,&MENGE1(13)&

Eg: Chapid(12)&,,&,,&MENGE1(13)& what is use of (12) and (13) after symbol?

Pls explain me,

Reward all helpful answers.

Regards.

Jay

5 REPLIES 5
Read only

Former Member
0 Likes
501

hi,

The menge has length of 13 and 3 decimals....

The quantity fields should not exceed the length so we are restriciting the length

Regards,

priya

Edited by: Banupriya R on Apr 18, 2008 7:47 AM

Edited by: Banupriya R on Apr 18, 2008 7:49 AM

Read only

Former Member
0 Likes
501

Hello Jay,

The number written in ( ) indicates the length of that field

and also ,, indicates one tab space in the output.

Hope its Useful..

Regards,

Kota

Read only

Former Member
0 Likes
501

Hi,

(12) and (13) is the maximum length that is assigned to the value of both fields.

pls reward points if useful.

Read only

Former Member
0 Likes
501

Hi Jay @ ,

This is the table for Excise duty availed on a material.i.e if a Material contains some Excise duties then this table comes into Picture, and about (12),(13) is the lenght of the field,

i.e

Chapid(12) means chapter id of material and in output it should only display 12 charecters

&MENGE1(13)& means this field in output ,it displays only 13 charecters.

(12) describes Length of that field at output.

if u change it to Chapid(11) then then at output i can see only 11 charecters of that field.

Hope this solves u r problem.

Reward points if found helpful.

Thanks and regards,

Rajesh.

Read only

AjayJangid
Explorer
0 Likes
501

Depending on the source, the value of a symbol comes from, they can be categorized as follows:

- SYSTEM symbols

- PROGRAM symbols

- STANDARD symbols

- TEXT symbols

FORMATTING of the symbol can be done in following different ways:

&SYMBOL+ 4& = Off set

&SYMBOL(5)& = Length

&SYMBOL(I)& = If the symbol is initial, output nothing

&SYMBOL(Z)& = Suppress leading zeros

&SYMBOL(C)& = Compress blanks

&SYMBOL(R)& = Right-justified output

&SYMBOL(S)& = Suppress +/- sign

&SYMBOL(5,2)& = Decimal place formatting

&SYMBOL(E3)& = Exponential notation

&’text1’SYMBOL’text2’& = Concatenation of symbol and text

Examples :

1. If

data : v_alfa(9) type c default '123456789'.

then

&V_ALFA(5)& will print 12345

&V_ALFA+5(4)& will print 6789

Please Reward, If Helpful

Ajay Jangid

IBM India Pvt. Ltd.