2015 Oct 05 11:37 AM
Hi gurus,
i created a structure append into the table KNVP, i add only one field (ZZmyfield). OK. Now i would like to maintain partner functions with BAPI standard taking into account my specific field.
Thanks for your help
2015 Oct 05 2:23 PM
Did you try the API class CMD_EI_API, method MAINTAIN_BAPI (look at CUSTOMERS[]-SALES_DATA-SALES[]-FUNCTIONS, deep structure parameter, and use search tool for samples of cmd_ei_api=>maintain_bapi.)
Hint: You have to add your field to structures CMDS_EI_FUNCTIONS_DATA and CMDS_EI_FUNCTIONS_DATAX (BAPIUPDATE) too (Look at Method EXTERN_FORMAT_SALES_DATA of class CMD_EI_API_MAP_STRUCTURE)
Regards,
Raymond
2015 Oct 05 12:40 PM
Hi,
Create a batch input and call transaction XD02.
You must use function CUSTOMER_UPDATE.
Regards.
David Cárceles.
2015 Oct 05 2:14 PM
2015 Oct 05 2:20 PM
If you like to create/update customers I would suggest to use cmd_ei_api=>maintain_bapi. It's a bit complicated at first look, but it's really powerful. If you would like to update your Z-fields with this method then you would need to append also your Z-field to the structures used by this method.
Cheers
Łukasz
2015 Oct 05 2:23 PM
Did you try the API class CMD_EI_API, method MAINTAIN_BAPI (look at CUSTOMERS[]-SALES_DATA-SALES[]-FUNCTIONS, deep structure parameter, and use search tool for samples of cmd_ei_api=>maintain_bapi.)
Hint: You have to add your field to structures CMDS_EI_FUNCTIONS_DATA and CMDS_EI_FUNCTIONS_DATAX (BAPIUPDATE) too (Look at Method EXTERN_FORMAT_SALES_DATA of class CMD_EI_API_MAP_STRUCTURE)
Regards,
Raymond
2015 Oct 06 9:26 AM
Hi all,
thanks a lot for your help.
I use class CMD_EI_API~MAINTAIN_BAPI() and it's work fine for standard field.
Now I do not know how to feed my specific field. I took a look at the class CMD_EI_API_MAP_STRUCTURE and method EXTERN_FORMAT_SALES_DATA but don't know what i should do. Do you have a wiki or sample code ?
Edit : in fact, method EXTERN_FORMAT_SALES_DATA is private...
Regards,
Eric
2015 Oct 06 11:04 AM
2015 Oct 06 11:37 AM
2015 Oct 06 12:14 PM
2015 Oct 06 12:47 PM
Sorry to insist, but this structure CMDS_EI_FUNCTIONS_DATA contains the following fields:
DEFPA | 1 Types | DEFPA | CHAR | 1 | 0 | Default Partner |
KNREF | 1 Types | KNREF | CHAR | 30 | 0 | Customer description of partner (plant, storage location) |
PARTNER | 1 Types | GPANR | CHAR | 10 | 0 | Number of an SD business partner |
Where can i append my zzfield ?
2015 Oct 06 12:58 PM
2015 Oct 06 1:13 PM
Oh yes ok ! Structure append with my zzfield, and the move-corresponding instruction will do the job mapping.
Sorry, i'm so tired