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

extracting data from a message

syed_ibrahim5
Active Participant
0 Likes
800

MAIN PRPOGRAM : ZPROG1

TRANSACTION : ZPROG2

IF WE RUN THE TRANSACTION CODE , IT WILL SHOW THE *PURCHASE ORDER NUMBER AND GRN NUMBER* IN THE STATUS BAR AS A MESSAGE................NOW I HAVE TO RETRIEVE THOSE TWO VALUES FROM THAT STATUS WARNING MESSAGE AND ADD THOSE DATA TO THE CUSTOM TABLE BY CALLING THE TRANSACTION FROM THE MAIN PROGRAM... HOW TO STORE THOSE VALUES SHOULD I USE GET AND SET PARAMETER ID..........PLS EXPLAIN.......

WITH ANTICIPATION AND REGARDS,

SYED

5 REPLIES 5
Read only

Former Member
0 Likes
764

Hi,

USe this function module BALW_BAPIRETURN_GET2 ,Pass the message number with type and class.

Read only

0 Likes
764

THANKS A LOT.

Read only

Former Member
0 Likes
764

Since you have purchase order number and GRN number with you and you are calling another program from same program. so you can use statement:

EXPORT TO MEMORY ID 'XXX'.

and then import in another program from same memory id.

IMPORT from MEMORY ID 'XXX'.

Read only

0 Likes
764

THANKS ... I WILL TRY THAT...

Read only

Former Member
0 Likes
764

Please do not post with CAPS LOCKED. It is considered rude and is difficult to read.

Many thanks,

Julius