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: 

COR1 Batch Number

Former Member
0 Kudos
358

Hi all experts,

i want to do the enhancement in cor1 by passing batch number from the general data screen

To the material screen.

I am using user exit PPCO0007 to do the enhancement; however, i can't find the fields or table that store this value or pass this value to.

I believe PPCO0007 is using HEADER_IMP LIKE CAUFVD as structure to store data, but still i can't find the field that have the batch value.

Please help and guide me.

5 REPLIES 5

Mohamed_Mukhtar
Active Contributor
0 Kudos
170

Hello Vong,

If BATCH is not available in the user exit PPCO0007 then you can use GET PARAMTER ID sytax in user exit to get the values of BATCH from general data screen.

GET PARAMETER ID 'PARAID of BATCH' value lv_batch.

Thanks

0 Kudos
170

How do i know its paraid and its value?

0 Kudos
170

Frankly, the parameter in cor1 batch of both general screen and material screen are the same.

Then how can i pass the value.

0 Kudos
170

Hello Vong,

Use ASSIGN statement to get the value of BATCH from general tab.

Press F1 on batch from general tab to get screen filed name and program name,

Use below code in your user exit.

DATA: iv_value(20) VALUE '(PROGRAMNAME)screenfieldnameofbatch'.

FIELD-SYMBOLS: <f_charg> TYPE charg

ASSIGN lv_value TO <f_charg>.

THanks

0 Kudos
170

The thing is i can only use Field with get parameter if i use VALUE like u mentioned, it get error.