Application Development 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: 

Bapi function module to update PRPS table

Former Member
0 Kudos

Hi ,

Presently i have a requirement which needs to update some data from ZIOS table into PRPS table. Can any one tell me what is the Bapi function module for updating data into PRPS table.

<REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>

Thanks,

Satish Raju

Edited by: Alvaro Tejada Galindo on Jan 12, 2010 11:46 AM

6 REPLIES 6

raymond_giuseppi
Active Contributor
0 Kudos

BAPI_BUS2054_CREATE_MULTI can create WBS elements

BAPI_BUS2054_CHANGE_MULTI can update WBS elements.

Sequence of call

BAPI_PS_INITIALIZATION

BAPI_BUS2054_GETDATA

<Change the Data>

BAPI_BUS2054_CHANGE_MULTI

BAPI_PS_PRECOMMIT

BAPI_TRANSACTION_COMMIT

Look at the documentation of function module BAPI_PS_INITIALIZATION for more details.

Regards

Former Member
0 Kudos

Hi

Thanks for the Bapis which has been sent. But I require to update more fields into PRPS table. The Bapi s which are sent are not having the fields like below.

ZIOS ZZENGTYPE To PRPS ZZENGTYPE

ZIOS ZZPLATFORM To PRPS ZZPLATFORM

Thanks

Satish Raju

0 Kudos

Hi

ZIOS ZZENGTYPE To PRPS ZZENGTYPE

ZIOS ZZPLATFORM To PRPS ZZPLATFORM

are not standard fields there are Custom fields a standard BAPI cannot have custom fields, u need to enhance the structures of the BAPI's and probably even BAPI to meet your requirements.

santhosh

0 Kudos

These ZZ fields are specific to your application, use the EXTENSION parameters.

Look in BAPI_PS_INITIALIZATION documentation, there is an explanation how-to fill specific fields.

For the BAPIs used to create and change project definitions, WBS

elements, networks, activities, and activity elements, you can

automatically fill the fields of the tables PROJ, PRPS, AUFK, and AFVU

that have been defined for customer enhancements in the standard system.

For this purpose, help structures that contain the respective key

fields, as well as the CI include of the table are supplied. The BAPIs

contain the parameter ExtensionIN in which the enhancement fields can be

entered and also provide BAdIs in which the entered values can be

checked and, if required, processed further.

CI Include Help Structure Key

CI_PRPS BAPI_TE_WBS_ELEMENT WBS_ELEMENT

Procedure for Filling Standard Enhancements

Before you call the BAPI for each object that is to be created or

changed, for which you want to enter customer-specific table enhancemen

fields, add a data record to the container ExtensionIn:

o STRUCTURE: Name of the corresponding help structure

+o VALUEPART1: Key of the object + start of the data part+

o VALUEPART2-4: If required, the continuation of the data part

VALUPART1 to VALUPART4 are therefore filled consecutively, first with

the keys that identify the table rows and then with the values of the

customer-specific fields. By structuring the container in this way, it

is possible to transfer its content with one MOVE command to the

structure of the BAPI table extension.

Note that when objects are changed, all fields of the enhancements are

overwritten (as opposed to the standard fields, where only those fields

for which the respective update indicator is set are changed).

Therefore, even if you only want to change one field, all the fields

that you transfer in ExtensionIn must be filled.

You have to use these parameters in BAPI_BUS2054_GETDATA as well as in BAPI_BUS2054_CHANGE_MULTI.

Regards

0 Kudos

Hi,

When I used this BAPI for change it is returing the following tow error messges

Object WBS Element TN1.IMNBRA.06129.K.013 could not be changed

WBS element TN1.IMNBRA.06129.K.013 does not exist

I think might be some problem in my coding part.

Can you please provide a piece of code in detail to change or update custom fields of WBS Element using BAPI

'BAPI_BUS2054_CHANGE_MULTI'.

Thanks,

Suresh

Edited by: suresh kumar on Jan 12, 2010 1:38 PM

Former Member
0 Kudos

answered