Application Development 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: 

Receipt/issue slips - Enhancement MBCF0005

Former Member
0 Kudos

Hi.

The following code gives me material serial numbers:

      • Material Object Number****

SELECT SINGLE obknr

INTO ser03-obknr

FROM ser03

WHERE mblnr = MKPF-MBLNR.

IF sy-subrc = 0.

      • Material Serial Number****

SELECT sernr

INTO objk-sernr

FROM objk

WHERE obknr = ser03-obknr.

ENDSELECT.

ENDIF.

How can I use this code with Enhancement MBCF0005.

Thanks guys.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Wandai,

You have two customer-exits in the enhacement package you have mentioned. You can use the one which is getting called at runtime. Both have an importing work area MKPF which contains the field MKPF-MBLNR for selection and then after selecting the material serial number you can save it by appending the

Include tables CI_AM07M

which will add fieds to the table AM07M and data will be stored in this table .

Hope this helps, revert for more clarifications if any.

<b>Always reward points to other's efforts if useful.</b>

regards,

Vikas

5 REPLIES 5

Former Member
0 Kudos

Hi Wandai,

You have two customer-exits in the enhacement package you have mentioned. You can use the one which is getting called at runtime. Both have an importing work area MKPF which contains the field MKPF-MBLNR for selection and then after selecting the material serial number you can save it by appending the

Include tables CI_AM07M

which will add fieds to the table AM07M and data will be stored in this table .

Hope this helps, revert for more clarifications if any.

<b>Always reward points to other's efforts if useful.</b>

regards,

Vikas

0 Kudos

Hi Vikas.

I intend to use 'EXIT_SAPM07DR_001' but not sure of my code. Can you please give me the sample code if its not too much. I kind of need to pull this one through.

Thanks.

0 Kudos

Hi Wandai,

You haven't told anthing about the scenario and how can i suggest some code without even knowing what you need and what exactly you are processing.

regards,

Vikas

0 Kudos

Vikas

I need to print material serial numbers from table 'OBJK' and print to SAPSCRIPT from 'WESCHEIN'. I suppose user exit 'EXIT_SAPM07DR_01' should be able to pass the selected material numbers to the form. The code that gets the numbers is ready and running. The challenge is on intergrating my code and the user exit. I know how to use transaction codes SMOD and CMOD.

My code is as follows:

      • Material Object Number

SELECT SINGLE obknr

INTO ser03-obknr

FROM ser03

WHERE mblnr = mkpf-mblnr.

IF sy-subrc = 0.

      • Material Serial Number

SELECT sernr

INTO objk-sernr

FROM objk

WHERE obknr = ser03-obknr.

ENDSELECT.

ENDIF.

I hope it helps.

Points will be awarded.

Former Member
0 Kudos

Resolved. Used a 'perform in the sapscript'.