09-14-2010 3:05 PM
Hi All,
I have a Z transaction for VF02 where in the user using it have access only for changing the text fields inside the transaction and all the other fields comes as output only.
Now i need to modifie this transaction such that only when the user is creating a new invoice he should be able to change the texts, while entering in the change mode ( normal) the transaction should behave as a display only.
Also on completion the control should return to the Z transaction rahter than goin to VF02 ( this is happening now and few users are getting a no authorization message).
Thanks in advance
Derek
09-14-2010 3:19 PM
Hi
If you are using the same Z transaction code for both Create and display it would be wise to add buttons on the initial screen so that when ujser selects 'CREATE' or 'DISPLAY' then you can modify the output status of your fields. to modify these you insert midification statuses in the attributes of the fields and in PBO you code as below:
"In PBO Create Module
module supress _fields.
then in module:
loop at screen.
if okcode = 'DISP'.
if screen-name = 'FIELD'.
screen-input = 0.
modify screen.
endif.
endif.
endloop.
regards
Isaac Prince
09-15-2010 11:05 AM
Hi Guys,
I solved the problem... for new document the control is transfered to VF01 and for the change.. i made all the fields output only. thanks
09-15-2010 11:09 AM