cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic paragraph for Sapscript

Former Member
0 Kudos

Hi all,

I need to write a sapscript that require to get the paragraph from abap program. Is this possible for sapscript?

Normally, we only choose the desire paragraph format on the left hand side on SE71.

Can sapscript get the paragraph format via abap program?

Thanks in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

u can use READ_FORM FM,

U can also get information from following tables

DOKHL,STXSPARA, STXSTAB

Former Member
0 Kudos

Hi prashanti k,

Thanks for your reply.

Could you please elaborate more on it? Would greatly appreciate if you could private some example.

Thanks so much.

Former Member
0 Kudos

hi wong ,

frst try to use read_form

also u can try using this code sample ....

SELECT SINGLE *

FROM DOKHL

WHERE LANGU = LANGU

AND ID = ID "Paragraph ID"

AND OBJECT = OBJECT "value :TDPARAGRAPH"

AND TYP = TYP 'value :E'.

hope this would be useful to u !!!!

regards,

prashanti

Former Member
0 Kudos

Hi prashanti k,

Thanks again.

In sapscript, the paragraph is defined as paragraph P1, but the form need to be more dynamically, where it will get the paragraph format from the program.

For example in sapscript,


P1         &WRITE_TEXT_HERE&

What is required was, the P1 needs to be dynamically, where it can change based on the program passing parameter, it could become P2 or P3.

Thanks.

Former Member
0 Kudos

not possible to put Dynamic paragraph formats in the same way you can create Character format

based on condition you can pass Character format with different fonts....

Former Member
0 Kudos

Hi Chenna kesava Reddy,

Thanks for your input. By the way, do you have any sample code for me to refer to?

Thank again.

Former Member
0 Kudos

Hi everyone,

Any idea how should I continue on this topic?