08-19-2005 9:28 AM
want to add the field on the Additional data B tab of the VA01 and VA02 at header level.
Already one field is there now i want to add one more field.How to proceed.
I think i have to go with screen exits.Can you help me in proceeding further and where should i write the code.
I have to move the updated fields to the vbak table
The code is like this
If VBAK-ZZGrswgh less than ZTRKLMT-ZZweight OR
VBAK-ZZCubTot less than ZTRKLMT-ZZCube OR
VBAK-ZZPaltot less than ZTRKLMT-ZZPallet
CLEAR VBAK_ZZTRKLMT.
Else
MOVE X TO VBAK_ZZTRKLMT.
End if
should i write this code in the USEREXIT_MOVE_FIELD_TO_VBAK of program MV45AFZZ ?
This user exit should trigger when
VBAK-AUART Equals 'ZWH' OR
VBAK-AUART Equals 'ZFV'
Reply soon
08-19-2005 11:03 AM
Hi
You are right.
In USEREXIT_MOVE_FIELD_TO_VBAK of program MV45AFZZ upi need to add
IF VBAK-AUART Equals 'ZWH' OR
VBAK-AUART Equals 'ZFV'.
If VBAK-ZZGrswgh lt ZTRKLMT-ZZweight OR
VBAK-ZZCubTot lt ZTRKLMT-ZZCube OR
VBAK-ZZPaltot lt ZTRKLMT-ZZPallet.
CLEAR VBAK_ZZTRKLMT.
Else.
MOVE 'X' TO VBAK_ZZTRKLMT.
Endif.
Endif.
(I corrected your code but did not syntax check it)
Then you need to add the field to the screen. Go into an order and go to the addition data B screen, click on the field that is already there and do "system > status". There will be a subscreen shown (on this system it is 8309, can't remember if it is always the same). Double click on this number and it will take you into screen painter so you can add the field. If you want to be able to change it you will need to add some logic to USEREXIT_SAVE_DOCUMENT in the same program.
Mike