1. i am using BAPI_BUS2054_CREATE_MULTI to create a new wbs element in an already existing project.When this is done then i am using BAPI_PS_PRECOMMIT and then bapi_transaction_commit
so this creates the wbs element which i guess but only the element.
2. Now i need to attach the networks to it which are there in BOM so i am taking all the network data from the table afko joining it with aufk.It is giving all the network data which was there attached prior to the project but the new one it is not showing.The query is
SELECT afkoaufnr afkopronr aufkpspel aufkktext aufk~loekz
INTO (afko-aufnr, afko-pronr, aufk-pspel, aufk-ktext, aufk-loekz)
FROM ( afko AS afko INNER JOIN aufk AS aufk ON aufkaufnr = afkoaufnr)
WHERE afko~pronr = w_wbs_cur-psphi.
3.Now i am comparing this data from above to the BOM data and take the difference of the networks which are to be created.
But as the above query is not returning the new wbs so it is getting failed.