2009 Jan 19 3:03 PM
Hi ,
I have Perform in some Function (s_user_list) and i want to cal to this perform in other report,
I try like that but i get error ,what it can be?
REPORT ztest_123.
......
PERFORM check_para IN PROGRAM s_user_list
USING action <ls_details>
CHANGING language lt_xp lv_error_flag lt_return .THE ERROR :
(E) Das referierte Objekt "s_user_list
\FO:Check_para" existiert nicht oder ist keinem Paket
zugeordnet.
What i doing wrong?
Regards
2009 Jan 19 3:26 PM
Hi,
Is check_para the subroutine and s_user_list your program ?
If not try to put subroutine name and program name in variable and call as:
PERFORM (subroutine) IN PROGRAM (prog)
USING action <ls_details>
CHANGING language lt_xp lv_error_flag lt_return IF FOUND.
Add IF FOUND to avoid error if subroutine is not found.
Also ensure both variable contain names in UPPER CASE.
Revert with results.
HI,
Try this way
PERFORM re501t(sapfhcmp) USING sy-langu
tcs_masterdata_wa-persg
CHANGING tcs_masterdata_wa-persg_text.
2009 Jan 19 3:05 PM
HI,
Try this way
PERFORM re501t(sapfhcmp) USING sy-langu
tcs_masterdata_wa-persg
CHANGING tcs_masterdata_wa-persg_text.
2009 Jan 19 3:12 PM
I guess this type of calling other program's perform is obsolete.
I tried and it worked:
TABLES: mara.
SELECT-OPTIONS: s_matnr FOR mara-matnr.
PERFORM fr_get_data IN PROGRAM zprogram
USING s_matnr.Looks like s_user_list program is having some issue with the package its assigned to..
2009 Jan 19 3:12 PM
PERFORM ('CHECK_PARA') IN PROGRAM (prog)
USING action <ls_details>
CHANGING language lt_xp lv_error_flag lt_return
IF FOUND.
Regards
Marcin
2009 Jan 19 3:33 PM
Hi Marcin,
What i have to put in (prog) ,the name of the external report ztest123 or the name of the function module that contain this perform?
PERFORM ('CHECK_PARA') IN PROGRAM (prog)
USING action <ls_details>
CHANGING language lt_xp lv_error_flag lt_return
IF FOUND.
Regards
2009 Jan 19 3:26 PM
Hi,
Is check_para the subroutine and s_user_list your program ?
If not try to put subroutine name and program name in variable and call as:
PERFORM (subroutine) IN PROGRAM (prog)
USING action <ls_details>
CHANGING language lt_xp lv_error_flag lt_return IF FOUND.
Add IF FOUND to avoid error if subroutine is not found.
Also ensure both variable contain names in UPPER CASE.
Revert with results.
2009 Jan 19 3:37 PM
Hi Ankesh ,
check_para is perform in function module s_user_list,
and ztest_123 is new program that inside it i want to use PERFORM check_para.
REPORT ztest_123.
......
PERFORM check_para IN PROGRAM s_user_list
USING action <ls_details>
CHANGING language lt_xp lv_error_flag lt_return .
Regards
2009 Jan 19 3:42 PM
Try replacing "s_user_list" with the name of the global function group program (function pool), starting with SAPL...
Thomas
2009 Jan 19 3:47 PM
HI Thomas,
Thanks,
I try to change it to the name of the function group and it's not working.
Regards
2009 Jan 19 3:47 PM
Hi Michael,
Is s_user_list some standard FM??
If you open it through SE37 then please use following path:
Open FM s_user_list in SE37
GOTO tab Attributes --There in field for Program Name in General Data you will find the program name..
Use this program name while calling PERFORM... IN PROGRAM (above described prog)....
Revert if u need more clarification.
2009 Jan 19 3:48 PM
Not just the function group, but rather SAPL<name of group>
Thomas
2009 Jan 19 3:48 PM
[More SAP help|http://help.sap.com/erp2005_ehp_04/helpdata/EN/9f/db978335c111d1829f0000e829fbfe/frameset.htm]
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |