‎2008 Aug 07 2:11 PM
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
‎2008 Aug 07 2:22 PM
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
‎2008 Aug 07 2:17 PM
you tried this..
*VBAPif 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..
‎2008 Aug 07 2:17 PM
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
‎2008 Aug 07 2:22 PM
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
‎2008 Aug 07 2:39 PM
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...
‎2008 Aug 07 2:47 PM
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
‎2008 Aug 07 2:50 PM
‎2008 Aug 08 10:36 AM
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