Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

what is the functionmodule or bapi for QS61 Transaction?

raj_kumar86
Participant
0 Likes
2,259

Hi,

Could you please tell  is there any function module or BAPI or standard program for QS61 transaction functionaly?

Thanks&Regards,

Indra

1 ACCEPTED SOLUTION
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,767

Hi Indra

SAP standard tcode is using QMSP_POST_MATERIAL_SPEC function module to create specification.

You can use the same.

Nabheet

8 REPLIES 8
Read only

Former Member
0 Likes
1,767

Use the exit FM EXIT_SAPLQMSP_003 -> Include zxqmsu03 .

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,768

Hi Indra

SAP standard tcode is using QMSP_POST_MATERIAL_SPEC function module to create specification.

You can use the same.

Nabheet

Read only

0 Likes
1,767

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.

Read only

0 Likes
1,767

Hi Indrappa,

please use

BAPI_TRANSACTION_COMMIT


in place of

COMMIT_WORK

Read only

0 Likes
1,767

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

Read only

0 Likes
1,767

Hi

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

Read only

Former Member
0 Likes
1,767

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?

Read only

raj_kumar86
Participant
0 Likes
1,767

Hi,

thanks for reply.

I have done BDC for this.

regards,

Indra.