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

Regarding BAPI_NETWORK_CONF_ADD .

soumya_jose3
Active Contributor
0 Likes
1,553

Hi Experts,

I am using the BAPI 'BAPI_NETWORK_CONF_ADD' for confirming the network in a report pgm.

Below is the code:

DATA: BEGIN OF I_CONFIRMATION OCCURS 0.

INCLUDE STRUCTURE BAPI_NETWORK_CONF_ADD.

DATA: END OF I_CONFIRMATION.

data: RETURN_MSG like BAPIRET2.

DATA: BEGIN OF MESSAGE_TAB OCCURS 0.

INCLUDE STRUCTURE BAPI_CONF_RETURN.

DATA: END OF MESSAGE_TAB.

data: rnplnr type BAPI_NETWORK_LIST-NETWORK.

I_CONFIRMATION-ACTIVITY = '0010'.

I_CONFIRMATION-PERS_NO = '44106'.

I_CONFIRMATION-WORK_CNTR = 'TESTSBIR'.

I_CONFIRMATION-ACT_TYPE = 'HLABOR'.

I_CONFIRMATION-ACT_WORK = '10'.

append i_confirmation.

rnplnr = '000001000715'.

CALL FUNCTION 'BAPI_NETWORK_CONF_ADD'

EXPORTING

NUMBER = rnplnr

  • POST_WRONG_ENTRIES = 0

  • TESTRUN =

IMPORTING

RETURN = RETURN_MSG

TABLES

I_CONFIRMATIONS = I_CONFIRMATION

E_MESSAGE_TABLE = MESSAGE_TAB

.

IF RETURN_MSG IS INITIAL.

.

COMMIT WORK.

endif.

Firstly I run the pgm as it is. Second time I run it in debugging mode and change the activity field to '0020' instead of '0010'.

After running it for the first time i checked the confirmation for the particular network in CN28 transaction and it is displaying the confirmation properly. But after i ran it for the second time using the activity '0020', the transaction CN28 is dumping.

Please help.

Thanks & Regards,

Soumya.

7 REPLIES 7
Read only

Former Member
0 Likes
1,006

Hi,

Instead of COMMIT WORK use BAPI_TRANSACTION_COMMIT.

Regards,

Renjith Michael.

Read only

0 Likes
1,006

hi,

i tried that also but still the situation is same.

Regards,

Soumya.

Read only

0 Likes
1,006

Hi,

Have you mentioned all the attributes properly when giving 0020 according to that.

I_CONFIRMATION-ACTIVITY = '0010'.

I_CONFIRMATION-PERS_NO = '44106'.

I_CONFIRMATION-WORK_CNTR = 'TESTSBIR'.

I_CONFIRMATION-ACT_TYPE = 'HLABOR'.

I_CONFIRMATION-ACT_WORK = '10'.

append i_confirmation.

also clear i_confirmation.

also check whether 0020 activity exists..

Regards,

Renjith Michael.

Read only

0 Likes
1,006

Hi,

The activity '0020' exists and i cleared i_confirmation, but the error is still there.

Thanks & Regards,

Soumya.

Read only

0 Likes
1,006

Solved on my own

Read only

0 Likes
1,006

Hi,

If you don't mind, pls share the logic you used, here.

Regards,

Renjith Michael.

Read only

0 Likes
1,006

Hi,

In ECC 6.0 it was happening. Actually the activity was getting confirmed properly but it was not displaying in CN28.

What I needed only was the proper confirmation of the activity.

Thanks & Regards,

Soumya.