Withholding Data With GL Posting BAPI
I am trying to use BAPI_ACC_GL_POSTING_POST to post line items (two of which are for state and federal withholding). I am using an extension to send exit EXIT_SAPLACC4_001 some custom fields data and withholding data (through structure ACCIT_WT). When I run the program that calls the bapi, I get desired reults for the line items I expect to see in the posted document. However, when I double-click on the line item for which I expect to see withholding tax data there are problems. Withholding tax code does not exist and none of the amounts that I am sending show up. The Withholding tax types and names of the withholding tax types are the only fields that show up in the subscreen "Display Withholding Tax Info" of transaction F-43. Can someone please give me some insight into what I am doing wrong. I am sending the following fields for structure ACCIT_WT:
and I have tried sending values for the other fields.
Does the grouping key WT_KEY have anything to do with my problem?
Your assistance is greatly anticipated. Thanks in advance.