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

Identify invoice header texts in runtime before document saved

0 Likes
3,027

Hello ABAP GURU's    

User enters header texts in invoice using transaction VF02. We need to find those texts in runtime of program before invoice saves.Because we need to fill VBRK field with serial number when texts are entered.

When user re-enter or changes those header texts in the same object 2nd time, then we need to compare this texts with first time entered text to know whether text changed or new text entered. When we find texts are entered or changed 2nd time, then we need to fill VBRK table field with next number from series of serial numbers.

Here the question is, where do we find entered header texts in runtime of program before document saved? which part of program code/BADI/exit/BAPI carriers these texts in runtime?

What is the variable/internal table/workarea/field which carries these header texts in runtime?

Thanks in advance.

Hello ABAP GURU's    

User enters header texts in invoice using transaction VF02. We need to find those texts in runtime of program before invoice saves.Because we need to fill VBRK field with serial number when texts are entered.

When user re-enter or changes those header texts in the same object 2nd time, then we need to compare this texts with first time entered text to know whether text changed or new text entered. When we find texts are entered or changed 2nd time, then we need to fill VBRK table field with next number from series of serial numbers.

Here the question is, where do we find entered header texts in runtime of program before document saved? which part of program code/BADI/exit/BAPI carriers these texts in runtime?

What is the variable/internal table/workarea/field which carries these header texts in runtime?

Thanks in advance.

9 REPLIES 9
Read only

ranjeetrajendra_jain
Active Contributor
0 Likes
2,298

Hi Chinna Pala

That is very basic in ABAP, however you need to post this in appropriate thread.

Regards

Read only

Lakshmipathi
Active Contributor
0 Likes
2,298

Moved from SAP ERP SD Billing to ABAP Development

Read only

Former Member
0 Likes
2,298

Dear Chinna,

               It might be stored in abap memory. Please look the id "MEMORY_ID" in debugger. Might be useful to you.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,298

Look at FM as GET_TEXT_MEMORY, or import CATALOG from memory Id 'SAPLSTXD', then use READ_TEXT with LOCAL_CAT = 'X'.


Regards,

Raymond

Read only

0 Likes
2,298

Thank you all for your response.

We have found the flag which is marked when texts are changed.

Regards

Chinna

Read only

0 Likes
2,298

Dear Chinna,

can you share with us the flag u found.

Read only

0 Likes
2,298

Yes, If we share definitely it will be helpful to others. Or else.

Just create a document and share the knowledge.

Read only

Former Member
0 Likes
2,298

Put debugger on SAVE_TEXT and READ_TEXT... Here you can easily catch it . Find out suitable exit or enhancement after that and use it as per requirement.

Read only

Former Member
0 Likes
2,298

Check this exit : EXIT_SAPLV60B_006