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

Problem with BAPI BAPI_BUS2001_SET_STATUS

Former Member
0 Likes
1,130

Hi All,

I want to set the status of Projects to Closed. I want to use this BAPI - BAPI_BUS2001_SET_STATUS.

The problem is that earlier it gave me an error stating 'Processing not possible because there is no initialization'

Then I called 2 BAPIs in a sequence..

1.BAPI_PS_INITIALIZATION and then

2.BAPI_BUS2001_SET_STATUS.

In this case the 2nd BAPI was successfully executed,

However, when I try to commit.. I get short-dump.

I am not able to track... Plz help.

thanks in advance.

3 REPLIES 3
Read only

Former Member
0 Likes
806

Varun,

Can you copy /paste short dump description.

Nilesh

Read only

0 Likes
806

What happened?

<b>The following syntax error occurred in the program SAPLCJ2001 :

""WA_BAPI_TE_PROJ" and "EXTENSIONIN+30(960)" are not mutually convertib"

Error in ABAP application program.

The current ABAP program "SAPLPS_BAPI" had to be terminated because one of the

statements could not be executed.

This is probably due to an error in the ABAP program. </b>

This is the Portion of the code where it dumped.. and this is not my code...

<b>

000860 **********************************************************************

000870 ***** Save routines for networks, activities & activity elements *****

000880 **********************************************************************

000890 IF NOT lv_network_data IS INITIAL.

000900 * Some network stuff to be posted

000910 CALL FUNCTION 'CN2002_NETWORK_PRECOMMIT'

000920 TABLES

000930 et_return = lt_network_return.

000940 ENDIF.

000950

000960 ***************************************************************

000970 ***** Save routines for project definition & WBS elements *****

000980 ***************************************************************

000990 IF NOT lv_wbs_data IS INITIAL.

001000 * Some project stuff to be posted

> CALL FUNCTION 'CJ2001_PROJECT_PRECOMMIT'

001020 TABLES

001030 et_return = lt_project_return.

001040 ENDIF.

001050

001060 *************************************************** </b>

Read only

0 Likes
806

Hi,

I know this is a long shot, but did you get a resolution for this error?

I have just hit the same error using FM BAPI_BUS2054_SET_STATUS.

thanks in advance

Julian

Hi,

Me again. In case anyone else reads this message, I found Note 1393723 - CNIF_PI: Syntax Error with non char fields in CI structures. It would appear our issue was caused by non char fileds in various bapi structures.

cheers

Julian

Edited by: Julian Christian on Jul 7, 2011 6:32 AM