on 05-14-2008 3:31 PM
Hi Experts ,
I am trying to use BAPI_BUS2172_SET_STATUS .
After execution I am in lt_return I am getting success message .But Afterward my BSP application Is throwing Dump as
"The following error text was processed in the system KLIS : The current application triggered a termination with a short dump."
I am not able understand how its returning success message and then throwing Dump.
Please give me some Idea of Possible cause of error .
I would like to know another thing .For Change user status , system Status via BAPI : BAPI_BUS2172_SET_STATUS , Do I need some permissions , Rights , authorities to change cProject against my SAP System User ?
If yes please let me know what are those ?
Regards ,
Parag
A test report, no grant fo the correctnes:
REPORT Z_CALL_BAPI
.
DATA: wa_dpr type dpr_project,
wa_def_guid type bapi_ts_guid-project_definition_guid,
wa_transaction type bapi_ts_business_transaction,
wa_return LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE,
wa_return1 LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE,
wa_return2 LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE.
wa_transaction-business_transaction = 'RELEASE'.
wa_transaction-business_transaction = 'CANCEL'.
wa_transaction-business_transaction = 'SET_FLAG_ARCHIVING'.
select single * from dpr_project into wa_dpr
where guid = '6E0AFE4197D09D6CE10000000A15534B'.
check sy-subrc = 0.
if wa_dpr-proc_status_own = '41'.
wa_def_guid = wa_dpr-guid.
call function 'BAPI_BUS2172_SET_STATUS'
EXPORTING
project_definition_guid = wa_def_guid
is_business_transaction = wa_transaction
TABLES
return = wa_return.
if sy-subrc = 0.
call function 'BAPI_CPROJECTS_COMMIT_WORK'
tables
return = wa_return1.
endif.
endif.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
9 | |
7 | |
3 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.