‎2008 Jan 15 6:47 AM
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.
‎2008 Jan 15 10:02 AM
Hi,
Instead of COMMIT WORK use BAPI_TRANSACTION_COMMIT.
Regards,
Renjith Michael.
‎2008 Jan 15 10:05 AM
hi,
i tried that also but still the situation is same.
Regards,
Soumya.
‎2008 Jan 15 10:14 AM
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.
‎2008 Jan 15 10:38 AM
Hi,
The activity '0020' exists and i cleared i_confirmation, but the error is still there.
Thanks & Regards,
Soumya.
‎2008 Feb 01 6:31 AM
‎2008 Feb 01 6:44 AM
Hi,
If you don't mind, pls share the logic you used, here.
Regards,
Renjith Michael.
‎2008 Feb 01 6:58 AM
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.