‎2007 Aug 06 4:07 AM
Hi Experts,
Given a multi-line textbox that allow a developer to key in some ABAP code and click on a submit. I want to generate a Package with the code provided to be save into a function module in the package. How do i go about it? Any comment is very much appreciated.
Thanks in advance.
Best Regards,
Rayden
‎2007 Aug 06 4:13 AM
Hi Rayden,
Your requirement is not clear. Can you please explain in more detail.
Regards,
Atish
‎2007 Aug 06 4:28 AM
Hi Atish,
Given :
1 Textbox (allow user to enter package name)
1 Textbox (allow user to enter function module name / file name)
1 multi-line textbox (allow user to enter abap code)
1 submit button (allow user to click and save the code)
eg.
Package : ZPackage
File Name : ZFM
ABAP Code : <... ...abap code here ... ...>
When user click on submit, i want the code enter by the user in the multi-line textbox to be save in a function module (ZFM) in the package (ZPackage) define by the user. How am i go about it? Any resource or material to refer to?
Please advice. Thanks
Best Regards,
Rayden
‎2007 Aug 06 4:44 AM
Hi Rayne,
Never heard of such a requirement.
But what you can do is, based on the package name -> CALL Transaction SE80 and create a package there (You can use BDC for this)
and in same way create FM (SE37 - BDC), but it may get very tricky and I think you must recosider such a requirement.
Regards,
Atish
‎2007 Aug 06 4:50 AM
Hi Atish,
Thanks for the feedback. What you mean by BDC?
Regards,
Rayden
‎2007 Aug 06 4:56 AM
Hi Rayden,
BDC is the programming technique by which you can call the other transactions.
You can just search the forum using 'BDC' and you will find lots of help on the same. Also search using CALL TRANSACTION.
Regards,
Atish