2005 Nov 21 3:02 PM
Hi,
iam using function module create_studio_project to create project definiton and later iam using
BAPI_TRANSACTION_commit to commit the function module.
But, when iam trying to create the project definiton, it is going for short dump.
Please any one help me.
Thanks,
DOnald
2005 Nov 21 3:03 PM
2005 Nov 21 3:09 PM
2005 Nov 21 3:07 PM
The most common cause cause for this could be a mismatch in the type definition of the parameters that you passed to the FM/BAPI. Just check those. Else provide the error reported.
Naveen
2005 Nov 21 3:11 PM
Hi Naveen,
I have passed same parameters.Actually when iam trying to execute this program , bapi is not commiting the project definition, when iam debegging going for short dump.
Thanks,
Donald
2005 Nov 21 3:16 PM
2005 Nov 21 3:17 PM
Hi Donald,
AFAIK, we use BAPI_TRANSACTION_COMMIT only in case of BAPI's and i don't think CJWB_CREATE_PROJ is a BAPI.
Probably for this reason its giving you a Dump.
Instead of the bapi_transaction_commit, use
normal commit work statement.
syntax
Commit work.
Regards,
Ravi
2005 Nov 21 3:19 PM
2005 Nov 21 3:22 PM
Hi,
Iam not using any exceptions for this function module.
CALL FUNCTION 'CJWB_CREATE_PROJ'
EXPORTING
I_PROJ = gs_proj.
IF SY-SUBRC <> 0.
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ENDIF.
ENDFORM.
This is what iam writing in my code.
2005 Nov 21 3:23 PM
2005 Nov 21 3:24 PM
Hi,
Use the statement as follows:
<b>commit work and wait.</b>
This works because in some cases if you use only commit work it does not update the table.
So use <b>commit work and wait.</b>
2005 Nov 21 3:39 PM
Hi,
If the dump occurs in the debug only and not in the normal execution, then probably you must be trying to use a single step(F5) on a SELECT statement. try avoiding debugging the select statement. Instead put a break point after the select statement and press on F8.
Also use COMMIT statement to commit your results.
Naveen.
2005 Nov 21 3:49 PM
hi,
Short text of error message :
Nested call of PERFORM ON COMMIT: NESTED_PERFORM_ON_COMMIT caller: SAPLP
S_GUID program: SAPLPS_GUID form: PS_GUID_COMMIT
Long text of error message:
Diagnosis
During processing of a routine called using PERFORM ... ON COMMIT,
the system attempted to call PERFORM ... ON COMMIT again. Nesting
of this is not allowed.
System Response
Procedure
The program indicated after "Caller:" must be changed. This is the
program that calls the routine indicated after "Form:" during
COMMIT processing. This routine is part of the program indicated
after
"Program:".
Procedure for System Administration
Technical information about the message:
Message classe...... 00
Number.............. 081
Variable 1.......... "NESTED_PERFORM_ON_COMMIT"
Variable 2.......... "caller: SAPLPS_GUID"
Variable 3.......... "program: SAPLPS_GUID"
Variable 4.......... "form: PS_GUID_COMMIT"
error iam getting.
Thanks,
Donald
2005 Nov 21 3:57 PM
hi,
i don't think that is a problem....it goes past the select statement
it throws the dump at the statement "Commit work and wait"
Thanks,
Donald
2005 Nov 21 4:01 PM
2005 Nov 21 4:05 PM
Hi Donald,
The problem could be you are calling function module BAPI_TRANSACTION_COMMIT before completing LUW.
You remove FM BAPI_TRANSACTION_COMMIT and try. It should wotk without this FM.
If this is not works, Can you please give which transaction you are using to create project definition?
Thanks,
Ramakrishna
2005 Nov 22 6:29 AM
Hi Ramkrishna,
With out BAPI_TRANSACTION_COMMIT how can i save my projects, Iam using CJ20N transaction.
Any way i have tried according to ur suggestion, but in vein.
Thanks,
Donlad
2005 Nov 22 7:43 AM
Hi,
Did you try using BAPI_PROJECTDEF_CREATE fm for creating project definition?
OR you can also try using 2001_PROJECTDEF_CREATE fm.
This fm internally calls CN2D_PROJDEF_CREATE_STRU which in turn calls CJWB_CREATE_PROJ fm only. But from what I see there is a little bit more than just commit work or call to BAPI_TRANSACTION_COMMIT if you call CJWB_CREATE_PROJ directly.
Take a look at code of 2001_PROJECTDEF_CREATE immediately after call to CN2D_PROJDEF_CREATE_STRU, it has following code to save the project definition,
CALL FUNCTION 'CJDT_GET_NEW_NUMBERS'.
PERFORM ON_COMMIT(SAPLCJWB).
COMMIT WORK.
Hope this helps...
Sri
2005 Nov 22 10:00 AM
Hi,
I haved tried this function module also BAPI_PROJECTDEF_CREATE, even though iam getting short dump and iam using Commit work.
Thanks,
Donald
2005 Nov 22 10:09 AM
Hi,
Short dump iam getting is
The call to the function module "2001_PROJECTDEF_CREATE" is incorrect:
In the function module interface, you can specify only
fields of a specific type and length under "PROJECT_DEFINITION_STRU".
Although the currently specified field
"GS_PROJ" is the correct type, its length is incorrect.
I have checked gs_proj datatype and project definion structure , even though iam fcing the sam error.
Thanks,
donald
2005 Nov 22 10:31 AM
Hi,
Check how you have defined gs_proj. It has to be of type BAPI_PROJECT_DEFINITION.
Sri
Message was edited by: Srikanth Pinnamaneni