on 11-23-2009 8:33 AM
Hi,
I need to configure, fields in Withholding tax accounting as sensitive fields in Vendor Master.
Table reference for Withholding tax is LFBW.
But the fields from this table are not avbl for configuring in SPRO.
It gives an error message as: This field is not allowed.
Is there any other method to add the required fields from LFBW table to configure them as sensitive fields.
Or adding the fields as sensitive is restricted for few fields only.
Pls do the needful.
Regards,
Radha
Hi Radha,
I finally found development we did for a customer. Below you can find sampler code. You can use exit ZXF05U01.
FIELD-SYMBOLS : <FIELD_VALUE> TYPE ANY.
DATA : SENSITIVE_FIELD(30).
FIELD-SYMBOLS : <FIELD_VALUE2> TYPE ANY.
DATA : SENSITIVE_FIELD2(30).
TABLES : T055F .
IF LN_LFM1 NE I_LFM1.
REFRESH KRITAB.
SELECT * FROM T055F WHERE KOART = 'K' AND
FELDN LIKE 'LFM1%'
.
SPLIT T055F-FELDN AT '-' INTO KRITAB-TABNAME KRITAB-FNAME.
APPEND KRITAB.
ENDSELECT.
LOOP AT KRITAB .
CONCATENATE 'LN_LFM1' '-' KRITAB-FNAME
INTO SENSITIVE_FIELD.
CONCATENATE 'I_LFM1' '-' KRITAB-FNAME
INTO SENSITIVE_FIELD2.
ASSIGN (SENSITIVE_FIELD) TO <FIELD_VALUE>.
ASSIGN (SENSITIVE_FIELD2) TO <FIELD_VALUE2>.
IF <FIELD_VALUE> NE <FIELD_VALUE2>.
<FS_LFA1>-CONFS = '1'.
IF SY-TCODE = 'XK01' AND <FS_XASEG> = ' '.
DATA : LFM1CONFS(1) TYPE C .
EXPORT LFM1CONFS LFM1CONFS2 FROM '1' TO MEMORY ID
'LFM1CONFS'.
UPDATE LFA1 SET CONFS = '1'
UPTIM = SY-UZEIT
UPDAT = SY-DATUM
WHERE LIFNR = <FS_LFA1>-LIFNR .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Radha,
You need to directly insert LFBW values into table T055F using SE11. When there is changes in one of these fields, which are not standard, pass LFA1-CONFS value 1 using FM BAPI_VENDOR_GETDETAIL
Best regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.