‎2014 Dec 02 7:06 AM
hello all,
in PRPS table we added some Zfields, (like : ZMSNO and ZMDATE) ,
now my question is i want to update these two fields for a given WBS Number,
how do i achieve this.
(which is the best way to update can i directly update by writing code or do i need to use BAPI)....
thanks in advance....
‎2014 Dec 02 7:15 AM
Hi Vinay,
only 2 fields right then its better to write the code to update 2 fields for the given wbs element.
Thanks,
Sree
‎2014 Dec 02 7:59 AM
Hi vinay,
It is always better to use Standard BAPI's to update if you have more entries.
BAPI_BUS2054_CHANGE_MULTI can be used to update WBS elements.
Use extensionin structure of BAPI to update Z fields.
Regards
Sri
‎2014 Dec 02 8:17 AM
Hi Vinay,
For updating the Z fields added in the PRPS table using CI include CI_PRPS, you will have to implement the exit CNEX0007. Using this exit, it is possible to display this field in the customer tab against each WBS elements in CJ20N transaction.
This exit contains 2 function module exits EXIT_SAPLCJWB_004 and EXIT_SAPLCJWB_005. The first exit is for PBO and the second is for PAI.
In the first exit, the first statement should be as follows:
MOVE-CORRESPONDING sap_prps_imp TO prps.
In the second exit, the final statement has to be as follows:
MOVE-CORRESPONDING prps TO cnci_prps_exp.
Before this statement, please ensure that you had passed the required values to the Z fields.
Regards,
Abijith
‎2014 Dec 02 8:39 AM
For
For initial loading, use the BAPI or a BDC on the transaction CJ02 (not CJ20N).
NB: Fields should have been named ZZMSNO and ZZMDATE to respect 16466 - Customer name range for SAP objects.
Regards,
Raymond