‎2007 May 17 1:33 PM
Hello all. I have the following code in SAPScript but I need to change it to SmartForms. Can anybody lend a hand at changing this?
if &Page& EQ '1'
INCLUDE &TVKO-TXNAM_ADR& OBJECT TEXT ID ADRS LANGUAGE &VBDKL-SPRAS_VST& PARAGRAPH SA
ENDIF
ADDRESS DELIVERY PARAGRAPH ZD
TITLE &VBLKK-ANRED&
NAME &VBLKK-NAME1& &VBLKK-NAME2 &VBLKK-NAME3& &VBLKK-NAME4&
STREET &VBLKK-STRAS&
POBOX &VBLKK-PFACH& CODE &VBLKK-PSTL2&
CITY &VBLKK-ORT01& &VBLKK-ORT02&
POSTCODE &VBLKK-PSTLZ&
COUNTRY &VBLKK-LAND1&
REGION &VBLKK-REGIO&
FROMCOUNTRY &VBLKK-SLNAD&
ENDADDRESSRegards,
Davis
‎2007 May 17 1:42 PM
Hi
This seems to be Shipping point/picking address details.
Here in the script they are in VBLKK structure.
In smartform they will be in different structure/table
Why can't you use the Std smartform for delivery instead of using the script conversion?
Std smartform for delivery is
LE_SHP_DELNOTE
check in that all the address details will be there.
Reward points if useful
Regards
Anji
‎2007 May 17 1:42 PM
Hi
This seems to be Shipping point/picking address details.
Here in the script they are in VBLKK structure.
In smartform they will be in different structure/table
Why can't you use the Std smartform for delivery instead of using the script conversion?
Std smartform for delivery is
LE_SHP_DELNOTE
check in that all the address details will be there.
Reward points if useful
Regards
Anji
‎2007 May 17 1:52 PM
Hi Anji,
I am converting the picklist from SAPScript to SmartForms. I would love to use the standard picklist but I can't find one in our system. We tried loading the preconfigured SmartForms into our system but we are missing the Best Practices package, which is a prerequisite. Do you know of a standard picklist that we may have or would you be willing to export one for me (I am on ECC 5.0)?
Thanks for the tip on the standard delivery form. I am going to look at this for the address.
Why will my address details not be coming from VBLKK?
Regards,
Davis
‎2007 May 17 2:14 PM
Hi
Smartform for Picking List is
<b>/SMB40/SDPIK_L</b>
copy that and use it.
Reward points if useful
Regards
Anji
‎2007 May 17 2:16 PM
Anji, thanks but that is included with the Best Practices addon (which we don't have) so I do not have access to that SmartForm. The only way for me to get them would be for somebody to do an export of the SmartForm and I would import it into my system.
Regards,
Davis
‎2007 May 17 1:46 PM
hi man
go to tcode smartforms->in 1st screen utilities->migrate sap script form->then it will ask the source form of script(give the script name like some zscriptjk).
then u made changes to ur code.
in smart forms they r 3 types for printing text.
1) text element
2)text module
3)include text.
u can also use include statement here ,but address command will not work here .
write those text under window-> right clik on window clk on text->write ur text here
if u have doubts plz let me know
reward points
kiran
‎2007 May 17 1:54 PM
Kiran, I have already done the conversion and I am in the process of making the changes needed for the SmartForm to work. I am stuck on this Address problem, which does not come over with the conversion.
Regards,
Davis
‎2007 May 17 8:45 PM
Hi,
SAP provides a conversion for SAPscript documents to SMARTforms.
This is basically a function module, called FB_MIGRATE_FORM. You can start this function module by hand (via SE37), or create a small ABAP which migrates all SAPscript forms automatically.
You can also do this one-by-one in transaction SMARTFORMS, under
Utilities -> Migrate SAPscript form.
You could also write a small batch program calling transaction SMARTFORMS and running the migration tool.
Regards,
Bhaskar