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: 

Default latest created PO Number in the screen

Former Member
0 Kudos

Hi,

I have one Z program developed for PO print.

It is very much similar to standard ME9F transaction / program.

In ME9F transaction, as soon as we execute a transaction. The latest created PO number will appear onthe PO document filed.

The same is expected to do in Z developed print transaction.

Becaz it won't display newly / latest created document number.

Any one helps me how to make a field with the default value of newly created PO document number.

Your help is appreciated and Awarded suitably for helpful answers.

Thanks in advance.

Giri

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Add " MEMORY ID BES " to the parameter or select-option in the selection screen.

This will take the PO's which is in Memory

Regards,

3 REPLIES 3

Former Member
0 Kudos

Hi,

Add " MEMORY ID BES " to the parameter or select-option in the selection screen.

This will take the PO's which is in Memory

Regards,

Former Member
0 Kudos

Try this:

REPORT ztest LINE-SIZE 80 MESSAGE-ID 00.

PARAMETER: p_ebeln LIKE ekpo-ebeln MEMORY ID bes.

Rob

Former Member
0 Kudos

If it is a dialog program, set the pid of the field to BES. If it is a report, use MEMORY ID BES.

eg.

SELECT-OPTIONS: s_ebeln for ekko-ebeln memory id BES