‎2008 Apr 21 8:56 AM
Hi,
1)Tcode-ZVCRUGR (program - ZV_CRUCIAL_GOODS_RECEIPT)-->Press External Vendor Button , the Component Manufacturer field should have been refreshed like the Country of Origin and Date code.
I have gone through the program but I could not find any refreshing for country of origin and date code fields.
My requirement is I have to refresh manufactuer field like country of origin and date code fields.
2) Tcode-ZVCRUGR (program - ZV_CRUCIAL_GOODS_RECEIPT)-->press button Stocking Order, the component Manufacturer field should also been greyed out like the Country of Origin and Date code.
Please help me.It is very urgent.
Regards,
suresh
‎2008 Apr 21 9:12 AM
If you want the field to be refreshed, write
CLEAR <field name>.
If you want to make it grey,
In the PBO Module, add the following code.
LOOP AT SCREEN.
IF screen-name = <fieldn ame>.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Assign points if helpful.
‎2008 Apr 21 9:22 AM
Hi,
In PBO, Do like this....
eg.
LOOP AT SCREEN.
if sy-tcode = 'PB30' AND ( SY-UCOMM = 'MOD' ).
IF SCREEN-NAME = 'P9001-GROUP'.
SCREEN-INPUT = '1'. "Input Field
MODIFY SCREEN.
ENDIF.
IF SCREEN-NAME = 'P9001-LEVEL'.
SCREEN-INPUT = '1'.
MODIFY SCREEN.
ENDIF.
if sy-tcode = 'PB30' AND ( SY-UCOMM = 'DIS' ) .
OR SY-UCOMM = ''
IF SCREEN-NAME = 'P9001-GROUP'.
SCREEN-INPUT = '0'. "Output Field
MODIFY SCREEN.
ENDIF.
IF SCREEN-NAME = 'P9001-LEVEL'.
SCREEN-INPUT = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Reward points if useful....
Regards
AK