cancel
Showing results for 
Search instead for 
Did you mean: 

What does this code do (in SAPScript)

Former Member
0 Kudos

I am having trouble converting a SAPScript to SmartForm. Part of the reason is that I don't understand the SAPScript.

include &vblkp-zztdnameh& object vbbk id 0001 paragraph HT
if &sapscript-subrc& = ' 0'
...

Also is anybody willing to export a preconfigured (standard) SmartForm for me? I am looking for the PickList (SDPIK). We do not have the Best Practices update so I am not able to import the SAP Preconfigured SmartForms. I am on ECC 5.0

Regards,

Davis

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

that statement is trying to insert a text object of name

vblkp-zztdnameh (the content of this variable)

and object vbbk, id --0001., using paragraph format HT

and tis checking whether the text was written successfully .. (whether such a text was existing)

Former Member
0 Kudos

So it is going to print two objects (zztdnameh and vbkk with id 0001)?

Regards,

Davis

Former Member
0 Kudos

It will print 1 object with the Object of 'VBBK' (delivery header I believe), ID of '0001', and name of 'zztdnameh' .

Have a look at structure THEAD and/or FM READ_TEXT. This should help clarify things for you.

In your smartform create a Text Node and make the Text Type 'Include Text'.

Name = &vblkp-tdnameh&

Object = VBBK

ID = 0001

Check the 'No error if no text exists' checkbox.

Message was edited by:

Matt Nagel

Former Member
0 Kudos

Matt thank you so much. So basically zztdnameh and 0001 are the parameters (keys) for the desired object in VBBK. Thank you so much for that information!

Regards,

Davis

Former Member
0 Kudos

Glad to help.

Answers (1)

Answers (1)

former_member181962
Active Contributor
0 Kudos

To see what it will print exactly, go to So10 transaction.

GIve the value of vblkp-zztdnameh for Text name.

0001 for TEXT ID.

and press display.

If you want to do the same in the smartform, you should create a TEXT ELEMNET node in the smartform. Select the Standard Text from the List Box, then giv ethe Txt Name , ID and Paragraph format.

Regards,

Ravi