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

Custom transaction for VF02

Former Member
0 Likes
706

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

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

3 REPLIES 3
Read only

prince_isaac
Active Participant
0 Likes
630

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

Read only

0 Likes
630

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

Read only

Former Member
0 Likes
630

solved