Skip to Content
author's profile photo Former Member
Former Member

Problem in using BAPI_HU_CREATE ?

Hi All,

I am using BAPI_HU_CREATE to create HUs, it is creating HU items. that s ok. after that i am using

BAPI_HU_CHANGE_HEADER, to change some header details. this is also ok. fine. What i observed here is i checked in VEPO table

For example : i created hu for 2 line items, BAPI_HU_CREATE creating 2 line items it is taking vbeln different no. and posnr also 1 and 2. after BAPI_HU_CHANGE_HEADER again 2 more line itesm created with correct vbeln and posnr as 10 20 both are correct.

why it is happened like this???

and one more is.. in VEKP Table first in BAPI_HU_CREATE, VPOBJ and VPOBJKEY values are different i changed these values in

BAPI_HU_CHANGE_HEADER , so correct values are coming, that means correct vbeln and posnr. before why it is taking

VPOBJKEY randomly??

Now total 4 records are there in table?? What should i do now?



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on May 05, 2011 at 07:12 AM

    Hi Venkat,

    Are you sure you are clearing the variables appropriately, i mean before you start building the data for "BAPI_HU_CREATE" are you doing a clear/refresh on the corresponding variables?



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.