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

update PRPS table

former_member185116
Active Participant
0 Likes
2,723

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....

4 REPLIES 4
Read only

Former Member
0 Likes
1,484

Hi Vinay,

only 2 fields right then its better to write the code to update 2 fields for the given wbs element.

Thanks,

Sree


Read only

former_member191761
Active Participant
0 Likes
1,484

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

Read only

former_member196651
Contributor
0 Likes
1,484

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

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,484

For

  • screen input/display -> Use enhancement CNEX0007 (SMOD to display documentation, CMOD to implement display of fields of CI_PRPS)
  • BAPI -> Use ExtensionIn (and Out to read data) enhancement of BAPI. Read documentation of parameter and FM for a BAPI as BAPI_BUS2054_CHANGE_MULTI, use structure BAPI_TE_WBS_ELEMENT to map data). Also note that you must call in sequence
    • BAPI_PS_INITIALIZATION
    • BAPI_BUS2054_CHANGE_MULTI
    • BAPI_PS_PRECOMMIT
    • BAPI_TRANSACTION_COMMIT

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