‎2013 Dec 18 10:24 AM
Hi,
Could you please tell is there any function module or BAPI or standard program for QS61 transaction functionaly?
Thanks&Regards,
Indra
‎2013 Dec 18 10:38 AM
Hi Indra
SAP standard tcode is using QMSP_POST_MATERIAL_SPEC function module to create specification.
You can use the same.
Nabheet
‎2013 Dec 18 10:33 AM
‎2013 Dec 18 10:38 AM
Hi Indra
SAP standard tcode is using QMSP_POST_MATERIAL_SPEC function module to create specification.
You can use the same.
Nabheet
‎2013 Dec 18 12:44 PM
Hi Nabheet,
Thanks for reply.
i tried with following code, but its not working. Could you please suggest where am doing wrong?
DATA : v_datuv TYPE sy-datum,
lt_rqmsptab TYPE TABLE OF rqmsp,
wa_rqmsptab TYPE rqmsp.
v_datuv = '20131220'.
wa_rqmsptab-matnr = '5800000013'.
wa_rqmsptab-werks = 'C001'.
wa_rqmsptab-atinn = '1030'.
APPEND wa_rqmsptab TO lt_rqmsptab.
CALL FUNCTION 'QMSP_POST_MATERIAL_SPEC'
EXPORTING
i_datuv = v_datuv
TABLES
t_rqmsptab = lt_rqmsptab.
COMMIT WORK.
Thanks in Advance.
Regards,
Indra.
‎2013 Dec 18 12:57 PM
Hi Indrappa,
please use
BAPI_TRANSACTION_COMMIT
in place of
COMMIT_WORK
‎2013 Dec 19 12:41 AM
Hi
Can you please debug inside what is happening. SAP standard program use the same. May be some field you are not passing and its coming out
nabbeet
‎2013 Dec 19 5:15 AM
Pass Material Number Leading with Zero's , Master Inspection Characteristics and Version check with below Sample Code .
DATA : V_DATUV TYPE SY-DATUM,
LT_RQMSPTAB TYPE STANDARD TABLE OF RQMSP WITH HEADER LINE INITIAL SIZE 0,
WA_RQMSPTAB TYPE RQMSP.
V_DATUV = '20131220'.
WA_RQMSPTAB-MATNR = 'xxxxxxxxxxxxxx'. " Material Number Leading with Zero
WA_RQMSPTAB-MKMNR = 'xxxxx'. " Master Inspection Characteristics
WA_RQMSPTAB-VERSION = 'x'. " Version Number of the Master Inspection Characteristic
WA_RQMSPTAB-WERKS = 'xxxx'. " Plant
APPEND WA_RQMSPTAB TO LT_RQMSPTAB.
CLEAR WA_RQMSPTAB .
CALL FUNCTION 'QMSP_POST_MATERIAL_SPEC' IN UPDATE TASK
EXPORTING
I_DATUV = V_DATUV
TABLES
T_RQMSPTAB = LT_RQMSPTAB.
COMMIT WORK.
Regard's
Smruti
‎2013 Dec 18 12:59 PM
I am sorry.. I totally misunderstood the question.
Try what Nabheet has suggested or you can also try FM QMS1_MATERIAL_SPECIFICATION.
Else, why dont you try creating a BDC?
‎2014 Jan 21 6:47 AM