02-08-2007 6:17 PM
Hello experts,
I know that this question have been asked before but I don't think it was answered adequately. I've done a where used on this and found only one instance that looked promissing.
Program: RLLQ0200
CALL FUNCTION 'L_TO_CREATE_POSTING_CHANGE'
EXPORTING
I_LGNUM = S1_LGNUM
I_LUBUI = LUBUI
I_SQUIT = CON_X
I_NIDRU = CON_X
I_UPDATE_TASK = SPACE
I_COMMIT_WORK = SPACE
I_BNAME = SY-UNAME
IMPORTING
E_TANUM = HLP_TANUM
TABLES
T_LUBQU = ILUBQU
T_LTAP_VB = TAP
EXCEPTIONS
ERROR_MESSAGE = 99.
Sadly enough I wasn't given the access to run that program so all I can do is eyeball it. After running BAPI_GOODSMVT_CREATE i get Number of Material Document Material and Document Year returned. I need to use that and somehow link it with 'L_TO_CREATE_POSTING_CHANGE'. Any help would be greatly appreciated.
Thanks!
____________________________________________________________
02-16-2007 12:57 PM
Hi Alex,
The similar requirement came for me too.
Can you pls let me know, how you have handled the same scenario?
Thanks & regards,
Nanda.
02-16-2007 1:00 PM
Hi Alex,
The similar requirement came for me too.
Can you pls let me know, how you have handled the same scenario?
Thanks & regards,
Nanda.
02-16-2007 3:49 PM
Nanda,
Here is,
r_goodsmvt_header-pstng_date = sy-datum.
r_goodsmvt_header-doc_date = sy-datum.
r_goodsmvt_code-gm_code = con_04.
Populate item
gt_goodsmvt_item-material = r_days-matnr.
gt_goodsmvt_item-plant = r_days-werks.
gt_goodsmvt_item-stge_loc = r_days-lgort.
gt_goodsmvt_item-batch = r_days-charg.
gt_goodsmvt_item-entry_qnt = '1'. "p_i_tab-clabs. "Modify before transport
gt_goodsmvt_item-entry_uom = mara-meins.
gt_goodsmvt_item-move_type = lv_mvt_type.
gt_goodsmvt_item-move_mat = r_days-matnr.
gt_goodsmvt_item-move_plant = r_days-werks.
gt_goodsmvt_item-move_stloc = con_0015.
gt_goodsmvt_item-move_batch = r_days-charg.
APPEND gt_goodsmvt_item.
Call BAPI to create goods movement
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = r_goodsmvt_header
goodsmvt_code = r_goodsmvt_code
IMPORTING
goodsmvt_headret = r_goodsmvt_headret
TABLES
goodsmvt_item = gt_goodsmvt_item
return = gt_return.
SELECT SINGLE lgnum ubnum FROM mseg INTO (lubu-lgnum, lubu-ubnum) WHERE mblnr = r_goodsmvt_headret-mat_doc
AND mjahr = r_goodsmvt_headret-doc_year
AND zeile = con_001.
CALL FUNCTION 'L_TO_CREATE_POSTING_CHANGE'
EXPORTING
i_lgnum = lubu-lgnum
i_ubnum = lubu-ubnum
i_commit_work = 'X'
IMPORTING
e_tanum = ltak-tanum
EXCEPTIONS
error_message = 2
OTHERS = 1.
I was given the wrong data to test with so I was getting error message for L_TO_CREATE_POSTING_CHANGE.
04-08-2011 12:56 PM
Hi All,
i am using same FM and passed same parameters but i am getting - u201CAutomatic quant assignment not possible (T_LUBQU transmitted)u201D error. if any one used thia FM success fully please tell me the parameters to be passed.
why this error is coming
02-16-2007 1:33 PM
Hi Alex,
Can you tell me exactly what you have got as input so i can try to solve it and if you wish.
Prashanth