01-27-2009 9:00 AM
Hi Everyone,
I have a senario , where in based on user inputs before posting goods issue in delivery processing (vl02n),
I need to call a Z-Transaction and update some details in it.
Now for that i created an include for the enhancement MV50AFZ1 and tried to write Call transaction statement as follows:
call TRANSACTION zwb01.
which throws the following syntax error: "Field ZWB01 is unknown.it is neither in one of the specified tables nor defined by a data statement"
Anyone has any idea on this, can i call transaction in an exit,if yes wat is it that i am missing out here??
Thanks,
sachin
01-27-2009 9:08 AM
you miss the apostrophes, should look like:
CALL TRANSACTION 'ZWB01'.
On the other hand the called transaction (ZWB01) contains DB COMMIT, than you should not do this from a user exit.
01-27-2009 9:08 AM
you miss the apostrophes, should look like:
CALL TRANSACTION 'ZWB01'.
On the other hand the called transaction (ZWB01) contains DB COMMIT, than you should not do this from a user exit.
01-27-2009 9:12 AM
hi eric,
thank you so much for replying,
you wrote":than you should not do this from a user exit" is this a must-not do or if client senario requires this we can go for it???
01-27-2009 9:20 AM
it depends, what ZBW01 is doing, but I guess it changes something in the DB and there is a COMMIT WORK somewhere in this transaction. And this means the the LUW of the main program would be destroyed with this COMMIT (the data will be inconsistent in the DB), this is why we should never call transaction from user exits. Pls. read SAPHelp: Logical Unit of Work and you understand better
01-27-2009 9:24 AM
even if this transaction updates some z-tables and then returns?
01-27-2009 9:28 AM
>
> even if this transaction updates some z-tables and then returns?
exactly, in fact this is the problem itself. It will update the transaction from which it was called as well - but that transaction is only "half-ready" and this will lead to inconsistent database entries.
01-27-2009 9:32 AM
ok eric, i think i've got your point.Will discuss the alternate possiblities with the functional
thanks for your support
points awarded