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

VA02 Additional Screen B Values

Former Member
0 Likes
1,053

hi

I have implemented the customer exit for VA02, 8459 screen which contains additional item data fields..

I have appended a new structure to VBAP which contains custom fields namely VBAP-ZFIELD1 and VBAP-ZFIELD2 and placed these fields on 8459 screen...

Now the problem I currently face is --I want to check whether the user has entered all the fields in this additional screen in the user exit but I do not see any values loaded these 2 fields at runtime VBAP-ZFIELD1 and VBAP-ZFIELD2 ...

Though they get saved to VBAP table after saving.. can somebody please guide me where these values could be.. I mean structure name.. I have already checked the XVBAP for this purpose

Edited by: Grame Smith on Aug 7, 2008 3:12 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,022

Hi

But where are u checking them?

If the system can store the value of new fields, it means they're loaded in temporany table XVBAP, so u should check it.

Max

7 REPLIES 7
Read only

Former Member
0 Likes
1,022

you tried this..

*VBAP

if not check it.

Second:

If you want to see them in screen field variables then you have to use CHAIN and ENDCHAIN in the flow logic. and include those fields inside the chain and endchain..

Read only

former_member404244
Active Contributor
0 Likes
1,022

Hi,

U won't find them in any of the temporary structures XVBAP,YVBAP...becoz sap standard program won't have ur field values....

U have to check in the PAI of the screen u mentioned..

if zfield1 is initial...

endif.

if zfield2 is initial.

endif..

Regards,

Nagaraj

Read only

Former Member
0 Likes
1,023

Hi

But where are u checking them?

If the system can store the value of new fields, it means they're loaded in temporany table XVBAP, so u should check it.

Max

Read only

0 Likes
1,022

hi Vijay

*VBAP does not have the values..and XVBAP does not even have this additional fields...

I have done the Chain... End Chain Operation too but in vain.. it shows the values there but dont know where they get disappeared when it comes to User Exit...

I want the check to be done only after save.. temporarily I have exported the VBAP Structure value to memory ID and importing it again in the user exit...

Now I have a bigger doubt here..

<b>How can I append multiple rows to an internal table which exists in the memory ID.. should I import it every time and append it and then export it again</b>

whenever the user comes out the transaction I want this memory ID to be cleared because as far as I know memory ID retains for the session..when the user switches to a different sales order I do not want the memory ID values to retain there which might cause hinderances..

can you please tell me a way for this.. please explain me this using Memory ID for internal tables...

Read only

0 Likes
1,022

Hi

U said: "XVBAP does not even have this additional fields"?

It's strange, XVBAP is like structure VBAPVB and this structure includes the VBAP so it should have your additional fields too.

Max

Read only

0 Likes
1,022

well just checked it again.. doesnt have it

Read only

Former Member
0 Likes
1,022

It does have values.. I was partially blind who could not notice that XVBAP contains many appended structures along with VBAP..

So just like VBAP holds the appended custom fields at last I was checking only the last fields of XVBAP too which was the problem...

Anyways thanks a ton