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

about module pool

Former Member
0 Likes
1,034

hi abaper,

this is about module pool progrm

i have a selection screen where i will enter PROCESS ORDER NUMBER

when i click PROCEED button after enter the process order number

i should call a transaction COWBPACK and that process order number should appear in this transaction field.

reply

thanks in advance

baleeq

1 ACCEPTED SOLUTION
Read only

venkata_ramisetti
Active Contributor
0 Likes
994

Hi Baleeq,

You can write code similar to below.

-


Report ZPROGRAM.

parameter: P_aufnr type aufnr.

SELECTION-SCREEN PUSHBUTTON /10(10) Text-001

USER-COMMAND PROC.

AT SELECTION-SCREEN.

IF SY-UCOMM = 'PROC'.

SET PARAMETER ID 'ANR' FIELD P_AUFNR.

CALL TRANSACTION 'COWBPACK'

ENDIF.

START-OF-SELECTION.

-


By the way baleeq, you posted 43 questions sofar and you have not awarded any points to any reply. Didn't you get any helpful replies sofar or don't you know how to award points? Please let us know if you don't know how to award points?

Thanks

Ramakrishna

9 REPLIES 9
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
994

Hi,

Try this :

AT selection-screen output .

call screen <for cowback>.

Read only

Former Member
0 Likes
994

hi,

1. You need to write code in the PAI of the particular screen.

2.Check for ok code corresponding to the 'proceed' button.

3. Set the parameter ID for the process order number .

4. call transaction COWBPACK

Read only

anversha_s
Active Contributor
0 Likes
994

Hi,

try this,

PBO

if process_ord_num is not initial.

CALL TRANSACTION <Tcode> 

endif.

rgds

Anver

Read only

Former Member
0 Likes
994

Hi Baleeq,

Before calling the transaction, store the value of the process order number into a sap global memory using:

SET PARAMETER ID pid FIELD p_ordno."P_ORDNO is selection screen parameter.

In the module pool program u can retrieve this field as:

GET PARAMETER ID pid FIELD g_ordno." G_ORDNO is the field in your transaction screen.

Regards,

Chetan.

PS: Reward points if this helps.

Read only

venkata_ramisetti
Active Contributor
0 Likes
995

Hi Baleeq,

You can write code similar to below.

-


Report ZPROGRAM.

parameter: P_aufnr type aufnr.

SELECTION-SCREEN PUSHBUTTON /10(10) Text-001

USER-COMMAND PROC.

AT SELECTION-SCREEN.

IF SY-UCOMM = 'PROC'.

SET PARAMETER ID 'ANR' FIELD P_AUFNR.

CALL TRANSACTION 'COWBPACK'

ENDIF.

START-OF-SELECTION.

-


By the way baleeq, you posted 43 questions sofar and you have not awarded any points to any reply. Didn't you get any helpful replies sofar or don't you know how to award points? Please let us know if you don't know how to award points?

Thanks

Ramakrishna

Read only

Former Member
0 Likes
994

Hi baleeq,

IN your selection screen u define your process order number field as fallows

parameters: p_aufnr like caufvd-aufnr MEMORY ID anr.

( Memory id for the ORDER field in transaction COWBPACK is anr )

Then u call the transaction COWBPACK in any of the events after the selection screen appears.

Now the value entered in the p_aufnr will be seen in ORDER field of transaction COWBPACK .

Hope your problem solved .

Regards,

Kasi S

Read only

venkata_ramisetti
Active Contributor
0 Likes
994

Baleeq,

You should more honest in awarding points. I request you to please go to your previous posts and award points to helpful answers.

Thanks

Ramakrishna

Read only

0 Likes
994

hi Baleeq,

Please reward all helpful answers

Read only

Former Member
0 Likes
994

Hi ahmed,

In flow logic editor, Under PAI event write below code.

Module process_order.

Double click on "process_order" .Now cursor goes to ABAPeditor.In between this

Module .....

SUBMIT SAPLVHUDIAL VIA SELECTION-SCREEN

WITH CAUFVD-AUFNR eq "name of the field in which you are entering process order no".

end module.

where SAPLVHUDIAL is the name of the program of the transaction code "COWBPACK "

CAUFVD-AUFNR is the field name of the "order" .

This code will help you lot.

Pls. reward points for helpful answers.