‎2007 Feb 05 6:44 AM
Hi
iam working on BADI Instead of calling mb11 tcode(CREATE MATERAIL DOCUMENT WITH MOVEMENT TYPE 309) iam using the FM MB_CREATE_GOODS_MOVEMENT.Here iam getting a doubt that wht values should i pass to the function module.here iam passing the values
constants: L_TCODE like SY-TCODE VALUE 'MB11'.
ls_imkpf-budat = sy-datum.
ls_imkpf-BLDAT = IS_LIKP-bldat.
ls_imkpf-USNAM = sy-uname.
imseg-matnr
imseg-UMMAT.
imseg-UMWRK
imseg-bwart
IMSEG-MENGE
imseg-werks
imseg-lgort
IMSEG-MENGE
imseg-ERFME
CALL FUNCTION 'MB_CREATE_GOODS_MOVEMENT'
EXPORTING
IMKPF = ls_IMkpf
XALLP = X
XALLB = blank
XALLR = X
CTCOD = L_TCODE
XQMCL = blank
OLD_SUBRC = ls_OLD_SUBRC
IPKCOM = ls_PKCOM
XLISU = X
XQMSR = blank
OI_SHPMT = blank
OIA_PASS = X
X_AUTHORITY = blank
I_OIA_ASTM_VALUES = blank
I_OIA_PO_GREC_CALL = blank
I_OIB_CALCULATE = blank
IMPORTING
EMKPF = ls_EMKPF
ES_MKPF = ls_mkpf
TABLES
EMSEG = lt_EMSEG
IMSEG = lt_IMSEG
T_MS1INT = lt_MSEGO1
T_MS2INT = lt_MSEGO2
IMSEG_CSL_TOKEN = lt_IMSEG_CSL_TOKEN
ET_MSEG = lt_MSEG
I_OIAACCGI = lt_OIAACCGI
I_OIA_KOMF = lt_OIAKOMF
I_YOIA06 = lt_OIA06
E_OIA_XMSEG = lt_OIAMSEG
T_OIB_EMSEGQTY = lt_OIB_EMSEGO2.
for this iam getting an error id 03,error messege 453.
wht is default parameters and fields should i pass to the FM To get the materail document?
‎2007 Feb 05 12:59 PM
Hi Bhanu,
this is for u r info..
put a breakpoint in the FM... then run ur program in debugging mode.. try to find the place where it is giving the error...
‎2007 Feb 05 1:07 PM
Hello,
Goto se37 & put <b>MB_CREATE_GOODS_MOVEMENT</b> FM's then use where used list therefore you can see how SAP standard programs are doing. If you are lucky you can find Custom program is using same Fun. Module done in your client environment.
I hope you understand my explanation.
***********Poorna*************