coolkl
Well Known Member
Hello All,
Thanks to this group for all help. I am customizing B4200310 F4211 End Doc & B4200420 Credit Check. From B4200310 (End Doc) I need to pass a new parameter i.e Payment Terms to B4200420 (Credit check). So I have changed D4200420 and added PTC. Copied the structure and pasted in B4200310.h file. Now from B4200310 before CreditCheckProcessing, I map zhptc as below to the new data structure created. This change is in I4200310_ProcessCreditCheck routine called from I4200310_ProcessHdrRcd.
I need Payment terms to retrieve from custom udc and since this is not in B4200420, I thought to add it to structure.
Code:
jdeStrcpy((JCHAR *)dsD4200420.szOrderKeyCompany,(const JCHAR *)lpdsF42UI01->zhkcoo);
jdeStrcpy((JCHAR *)dsD4200420.szPaymentTerms, (const JCHAR *)lpdsF42UI01->zhptc);
idReturnValue = jdeCallObject(_J("CreditCheckProcessing"),
NULL, lpBhvrCom,lpVoid,(LPVOID)&dsD4200420,
(CALLMAP *)NULL,(int)0,(JCHAR *)NULL,
(JCHAR *)NULL,(int)0);
But this does not work. Even I tried to hard code PTC = "ABC" but it does not pass anything to B4200420. I am missing some action. I did build the BSFN locally for testing. Any pointers, ideas ?
Thanks & Regards,
CKL
Thanks to this group for all help. I am customizing B4200310 F4211 End Doc & B4200420 Credit Check. From B4200310 (End Doc) I need to pass a new parameter i.e Payment Terms to B4200420 (Credit check). So I have changed D4200420 and added PTC. Copied the structure and pasted in B4200310.h file. Now from B4200310 before CreditCheckProcessing, I map zhptc as below to the new data structure created. This change is in I4200310_ProcessCreditCheck routine called from I4200310_ProcessHdrRcd.
I need Payment terms to retrieve from custom udc and since this is not in B4200420, I thought to add it to structure.
Code:
jdeStrcpy((JCHAR *)dsD4200420.szOrderKeyCompany,(const JCHAR *)lpdsF42UI01->zhkcoo);
jdeStrcpy((JCHAR *)dsD4200420.szPaymentTerms, (const JCHAR *)lpdsF42UI01->zhptc);
idReturnValue = jdeCallObject(_J("CreditCheckProcessing"),
NULL, lpBhvrCom,lpVoid,(LPVOID)&dsD4200420,
(CALLMAP *)NULL,(int)0,(JCHAR *)NULL,
(JCHAR *)NULL,(int)0);
But this does not work. Even I tried to hard code PTC = "ABC" but it does not pass anything to B4200420. I am missing some action. I did build the BSFN locally for testing. Any pointers, ideas ?
Thanks & Regards,
CKL