on 09-16-2012 10:08 AM
Deal All,
I'm developing a file based interface to create/update vendor master records from an external source. I'm using method MAINTAIN_BAPI of class VMD_EI_API. In the program I have my internal table of data, I loop through it and call the method one-by-one for each. My problem is that, then only the first record is created successfully, the creation of further records fails with error message AM030 Address handle invalid: &.
I can't affect the address handle when I call the method. As figured out in debug standard code defines the address handle as the vendor number (before it gets the next vendor number from the number range).
I tried to use FM 'ADDR_MEMORY_CLEAR' in each loop-step to clear the temporary address memory - it only solved the issue in test mode. In update mode, however, I get short dump.
Have any of you ever faced this problem when using this method.
thanks,
Szabolcs
Message was edited by: Szabolcs Dombó OSS Note 1276406 is implemented as per current release/patch level.
Hi,
Do you mean you loop and call MAINTAIN_BAPI several times??
or you prepare all data then call MAINTAIN_BAPI once.
BTW:
you have to use BAPI_TRANSACTION_COMMIT instead of a direct COMMIT WORK.
same for rollback, BAPI_TRANSACTION_ROLLBACK
Personnally I would call MAINTAIN_BAPI once only.
Regards
Alain
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try vmd_ei_api=>initialize( ). before calling the CALL METHOD vmd_ei_api=>maintain_bapi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.