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

Module pool program

Former Member
0 Likes
815

Hi All,

Can we run module pool program in background? if so how to add execute in back ground in the menu.

can we load upload data from excel into this program? how

Iam creating new program coping tcode- MMAM, need to make material number to range instead of single value(existing ).

Please advice how to add above functionality to the custom program.

Thanks for you inputs

jog

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
770

Hi Jog,

Thats not the correct way to go about.

Firstly, its not a report type program to have a selevt-option in place of the single field.

You have to do a BDC as others have already suggested.

Step 1).

Upload the data from the excel file into an internal table. using GUI_UPLOAD.

Step 2)

Fill the BDCDATA structures and call the transaction MMAM for each record in the internal table.

Regards,

Ravi

7 REPLIES 7
Read only

Former Member
0 Likes
770

Yes You can run program Background...and you write BDC Custom program normally,it updates the data.

Read only

Former Member
0 Likes
771

Hi Jog,

Thats not the correct way to go about.

Firstly, its not a report type program to have a selevt-option in place of the single field.

You have to do a BDC as others have already suggested.

Step 1).

Upload the data from the excel file into an internal table. using GUI_UPLOAD.

Step 2)

Fill the BDCDATA structures and call the transaction MMAM for each record in the internal table.

Regards,

Ravi

Read only

0 Likes
770

Hi,

Thanks for the reply,

When I fill bdcdata and call the transaction MMAM it says - "LEAVE TO TRANSACTION" is not allowed in batch input.

so, I am trying to create a report type program and submit to this transaction,

1. is this possible? let me know any other approach

2. I need to capture the output of the standard program(MMAM) in case of errors - which is like long test.(Message)

How can I capture in my program if I call this program from my program this long text.

Hope I am clear.

Thanks in advance

Jog

Read only

0 Likes
770

Hi Jog,

Did you manage to solve no. 2?

I'm trying to capture the output as well.

Thanks.

SM

Read only

0 Likes
770

Hi Su,

I did solve the problem.

Thanks

jog

Read only

0 Likes
770

Hi Jog,

I'm writing a Batch Input or Call Transaction program for transaction code MMAM (Changing Material Type). The program was able to run but somehow I was not able to capture the log of the output after running MMAM. The log was not part of the SY-MESSAGE so adding in MESSTAB into call transaction doesn't help while BDC session logs shows only the transaction was processed.

Please help me out .

Thanks in Advance.

Regards,

Ramu.

Read only

0 Likes
770

Hi Jog,

I have the same Problem.

Using the tranaction MMAM in BDC to change the MTART.

When I fill bdcdata and call the transaction MMAM it says - "LEAVE TO TRANSACTION"   is not allowed in batch input.

I need to capture the output of the standard program(MMAM) in case of errors.

Can you help me?

Regards

Klaus