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: 

Imposible to update Z-Fields appended to EBAN

Former Member
0 Kudos

Hi gurus

There are Z-fields added to the table EBAN (purchase requisition) and wish to modify the value of these fields through a BAPI (BAPI_PR_CHANGE)

I know that I have to do by filling out the parameters of the table EXTENSIONIN but I have done all the tests possible and couldn't

I call BAPI_PR_GETDETAIL to see how fills EXTENSIONOUT table and then i put the same parameters into EXTENSIONIN to call BAPI_PR_CHANGE and no results

These are the Z fields added to EBAN

PRIO_REQ <----- This is the last standard field of EBAN

.INCLUDE CI_EBANDB <---- Include where Z-fields are in

ZBUYER ZBUYER CHAR 12

ZNMBUY ZNMBUY CHAR 30

ZBUQUE CHAR 20

ZMOTOR CHAR 20

ZNPARTE CHAR 6

ZBUYER2 ZBUYER2 CHAR 12

ZBUYER3 ZBUYER3 CHAR 12

I see that the Z-fields are added on INCLUDE, not APPEND and i don't know if this is a problem, otherwise i hope someone can bring some ligth to this because is a big problem, i only can update these fields throug ME52N and can't make batch input to this transaction

Thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

HI

Try to implement the Business addin ME_BAPI_PR_CUST

i.e., the method INBOUND.

and check the changing parameter CH_EXTENSIONIN

I think the badi will be triggered for the bapi BAPI_PR_CREATE, check if the same is useful for BAPI_PR_CHANGE as well.

<REMOVED BY MODERATOR>

With Regards,

Dwarakanath

Edited by: Alvaro Tejada Galindo on Mar 19, 2008 6:06 PM

2 REPLIES 2

Former Member
0 Kudos

HI

Try to implement the Business addin ME_BAPI_PR_CUST

i.e., the method INBOUND.

and check the changing parameter CH_EXTENSIONIN

I think the badi will be triggered for the bapi BAPI_PR_CREATE, check if the same is useful for BAPI_PR_CHANGE as well.

<REMOVED BY MODERATOR>

With Regards,

Dwarakanath

Edited by: Alvaro Tejada Galindo on Mar 19, 2008 6:06 PM

0 Kudos

i've implemented this badi but i realise i only can check parameters passed to bapi, i haven't acces to eban structure to pass the fields values to Z-fields in EBAN

Anybody can fill Z-fields of EBAN (Purchase requisition) though BAPI_PR_CREATE/CHANGE