‎2006 Nov 23 5:15 AM
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
‎2006 Nov 23 5:31 AM
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
‎2006 Nov 23 5:20 AM
Hi,
Try this :
AT selection-screen output .
call screen <for cowback>.
‎2006 Nov 23 5:21 AM
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
‎2006 Nov 23 5:22 AM
Hi,
try this,
PBO
if process_ord_num is not initial.
CALL TRANSACTION <Tcode>
endif.rgds
Anver
‎2006 Nov 23 5:24 AM
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.
‎2006 Nov 23 5:31 AM
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
‎2006 Nov 23 5:39 AM
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
‎2006 Nov 23 6:09 AM
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
‎2006 Nov 23 6:25 AM
‎2006 Nov 23 6:20 AM
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.