cancel
Showing results for 
Search instead for 
Did you mean: 

FM to remove data in Use fixed address in CAA2 Screen

former_member576555
Discoverer
0 Kudos

Hi,

I am looking for an FM to Remove 'Use Fixed address field'. I want to check and uncheck as per the business requirement. I have highlighted the field in yellow below.

Please help.

Thanks,

Anand.

Accepted Solutions (1)

Accepted Solutions (1)

william_eastman
Advisor
Advisor
0 Kudos

Both scenarios could be handled via the account change bapi. Removing the flag is simple - but adding it requires you to have determined the right address to use for fixing.

former_member576555
Discoverer
0 Kudos

Hi William,

Thank you for the above. Can you please let us know which field in the BAPI 'BAPI_ISUACCOUNT_CHANGE' should be done to acheive this?


Thanks,

Anand.

Answers (1)

Answers (1)

ChristinaHo
Advisor
Advisor
0 Kudos

The field FKKVKP-ADRNB is set if another than the standard adress is chosen in transaction CAA2.

Check in CAA2

In the header you find the field "BP: Address Description". Beside you find the flag ' ' Fix.

If you now press F4 for field "BP: Address Description" and you choose in the popup another than the standard address the flag Fix is set and the field FKKVKP-ADRNB is saved with the fixed adressnumber.

You can use the BAPI BAPI_CTRACCONTRACTACCOUNT_CHNG to change the field address number (FKKVKP-ADRNB).

BAPI_CTRACCONTRACTACCOUNT_CHNG
...
*"  TABLES
*"      CTRACPARTNERDETAIL STRUCTURE  BAPIFKKVKPI OPTIONAL

BAPIFKKVKPI
ADDR_NO Address Number