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

issue in BAPI_PO_CREATE1 for Network/activity.

Former Member
0 Likes
1,173

Hi,

When i use the ref po no and create the same ref po in ME21n tcode, there is no issue po is succesfully created.

When im trying to pass through BAPI_PO_CREATE1, it is giving me a error as "Network or network activity 4008252 does not exist", though the Network 4008252 exists in CN23 with activites 120 and 250.

I have debugged the report, inside the BAPI_PO_CREATE1, we have one perform "get_current_data", in side that go to the method CALL METHOD l_item->get_po_accountings.and again go inside teh FM MEPO_DOC_ITEM_ACCOUNTS_ID_GET, and again go inside the perform GET_ITEM_accounts_id(saplmepo), there we fidn the read table KNT. This Table KNT is filled some where before the call of BAPI_PO_CREATE1 and it is filled. in this KNT, the activity is missing,by the time breakpoint reaches there. i have added the activities in debugging mode but still it is giving me a same error "Network or network activity 4008252 does not exist".

Regards,

Deepthi.

Hi,

When i use the ref po no and create the same ref po in ME21n tcode, there is no issue po is succesfully created.

When im trying to pass through BAPI_PO_CREATE1, it is giving me a error as "Network or network activity 4008252 does not exist", though the Network 4008252 exists in CN23 with activites 120 and 250.

I have debugged the report, inside the BAPI_PO_CREATE1, we have one perform "get_current_data", in side that go to the method CALL METHOD l_item->get_po_accountings.and again go inside teh FM MEPO_DOC_ITEM_ACCOUNTS_ID_GET, and again go inside the perform GET_ITEM_accounts_id(saplmepo), there we fidn the read table KNT. This Table KNT is filled some where before the call of BAPI_PO_CREATE1 and it is filled. in this KNT, the activity is missing,by the time breakpoint reaches there. i have added the activities in debugging mode but still it is giving me a same error "Network or network activity 4008252 does not exist".

Regards,

Deepthi.

2 REPLIES 2
Read only

Former Member
0 Likes
826

this is solved.

Read only

0 Likes
826

Dear deepthi dandibh,

Do you know how to solve it? I got the problem similar as you.

When I debug via BAPI_PO_CREATE1 function, I found the KNT has the G/L Account inside, But when I call BAPI_PO_CREATE1 by Zxxx program and debuging it. It doesn't has the G/L Account inside KNT table.

Could you please help to advise me how to do ?

Best Regard,

NNP