We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

[sap-acct] ABAP code to 'catch' current field value of currently opened transaction (FBCJ)

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Question from samnovice on Oct 12 at 3:08 AM
Hi experts,

In ABAP code of my ZReport (cash receipt of FBCJ transaction), I have simple ABAP code looking like this
SELECT SINGLE PERSON1 FROM TCJ_C_JOURNALS INTO usrname
but problem with this code is that it is missing WHERE part, which should look like this
SELECT SINGLE PERSON1 FROM TCJ_C_JOURNALS INTO usrname
WHERE CAJO_NUMBER = *currently selected cash journal on FBCJ Tcode* (item no. 1 on screenshot)
Please see screenshot below.

https://s16.postimg.org/zark5oao5/2016_10_12_8_55_ 38.jpg

If I would need for example in WHERE clausule SAP username, I would easily use SY-UNAME which would read currently login username, BUT how about currently selected cash journal in FBCJ Tcode, is it possible to find such value so I could use it for my ABAP query?

Thank you.
Sam
 
Reply to this email to post your response.
 
__.____._
Manage Settings | Unsubscribe | Create FAQ | Send Feedback
  
© 2016 Ziff Davis, LLC. and message author.
Ziff Davis, LLC. 28 E 28th Street New York, NY 10016
samnovice  

achievements
 
View this online
Ask a new question
 
In the Spotlight
Have a technical question? Need to find IT solutions? Ask your peers in the Toolbox for IT community.

_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language