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

Query

Former Member
0 Likes
693

Hi Friends,

Could u please send me the details

1. Part No. (NDC#) QALS- MATNR CHAR 18 Selected based on the Inspection Lot Number(QALS-PRUEFLOS) in transaction QA32.

‘NDC’ before Part Number

The part number will include dashes.

Example:

0398-0457-08-C1

NDC No. =

‘NDC 0398-0457-08-C1’

Regards

Srinu

1 ACCEPTED SOLUTION
Read only

naimesh_patel
Active Contributor
0 Likes
644

Hello,

If I understood right,

Concatenate 'NDC' '0398-0457-08-C1' into l_text separted by ' '.

regards,

Naimesh

6 REPLIES 6
Read only

naimesh_patel
Active Contributor
0 Likes
645

Hello,

If I understood right,

Concatenate 'NDC' '0398-0457-08-C1' into l_text separted by ' '.

regards,

Naimesh

Read only

0 Likes
644

hi friends,

Could u please send me the details how to write to this type of query

. Part No. (NDC#) QALS- MATNR CHAR 18 Selected based on the Inspection Lot Number(QALS-PRUEFLOS) in transaction QA32.

‘NDC’ before Part Number

Regards

srinu

Read only

Former Member
0 Likes
644

hi,

the following sample code would help:

data : partno type qals-matnr,

ndcno(21) type c value 'NDC'.

select matnr from qals into partno where prueflos = 'XXXX'.

if sy-subrc eq 0.

concatentate ndcno partno into ndcno.

endif.

Hope this helps you, reward if helpful.

Read only

0 Likes
644

hi friends,

Could u please send me the details

Select the Characteristic Value (AUSP-ATWRT), where the Internal characteristic(AUSP-ATINN) equals ‘AVE_TABLET_WEIGHT’, the Class type (AUSP-KLART) equals ‘023’, and the Object(AUSP-OBJEK) = the material number’s Finished product material number(MARA-MATNR).

To find this, remove the last 3 digits from the material number.

Ex.

0378-0457-01-C1

0378-0457-01

Regards

Read only

0 Likes
644

hi friends,

Could u please send me the details how can we write the query

Select the Characteristic Value (AUSP-ATWRT), where the Internal characteristic(AUSP-ATINN) equals ‘AVE_TABLET_WEIGHT’, the Class type (AUSP-KLART) equals ‘023’, and the Object(AUSP-OBJEK) = the material number’s Finished product material number(MARA-MATNR).

To find this, remove the last 3 digits from the material number.

Ex.

0378-0457-01-C1

0378-0457-01

Regards

Laxmi

Read only

0 Likes
644

l_matnr = mara-matnr. "removing the last three chars

condense l_matnr.

l_len = strlen(l_matnr).

l_flen = l_len - 3.

write l_matnr+0(l_flen) to f_matnr.

SELECT ATWRT INTO ITFIN-STRENGTH FROM AUSP

WHERE AUSP-ATINN = ‘AVE_TABLET_WEIGHT' and

KLART = ‘023’ and OBJEK = f_MATNR.

Regards

Anurag