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

Generating Package & Function Module

Former Member
0 Likes
587

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

5 REPLIES 5
Read only

Former Member
0 Likes
567

Hi Rayden,

Your requirement is not clear. Can you please explain in more detail.

Regards,

Atish

Read only

0 Likes
567

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

Read only

0 Likes
567

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

Read only

0 Likes
567

Hi Atish,

Thanks for the feedback. What you mean by BDC?

Regards,

Rayden

Read only

0 Likes
567

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