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

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

RE:[sap-dev] Ignoring a Target Field in LSMW FI Posting

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

Reply from Sunny on Aug 29 at 11:45 AM
I've figured out the ABAP routine to comply with the above business requirement by myself and I'm copying the routine below for any one who is interested to know.

Steps:
1- TCode OB68 to remove default value date for your company code
2- The routine will be copied as below in the VALUT field.

if (Your Item Structure Name)-HKONT = '105205'.
BBSEG-VALUT = (Your Item Structure Name)-VALUT.
ELSE.
BBSEG-VALUT = '/'.
endif.

Thanks
Sunny

---------------Original Message---------------
From: Sunny
Sent: Monday, August 27, 2012 11:03 AM
Subject: Ignoring a Target Field in LSMW FI Posting

Hello Experts,
Is there a way to ignore a particular target field and its mapping in LSMW?
For example, I have 6 target fields present in a target structure at item level, I want to ignore only one field (VALUT) based on a value in the file for another field (NEWKO OR HKONT) so only 5 target fields will be considered for processing FI posting.
Business Requirement:
If NEWKO (GL Account field) is not equal to account # 105205 then LSMW should not post any "Value Date" for that line item. Currently, the input file is posting "Value Date" for all line items in LSMW.

In the step "Maintain Field Mapping and Conversion Rules" I selected the field "VALUT" and clicked on "Rule" to get the ABAP screen. I've used the following ABAP code.

if BBSEG-NEWKO <> '105205'.
BBSEG-VALUT = SPACE
endif.

Please help me out to correct this code or let me know any other route to fix this issue.
Any replies will be much appreciated

Thank You
Sunny

 
Reply to this email to post your response.
 
__.____._
Manage Settings | Unsubscribe | Create FAQ | Send Feedback
  
Copyright © 2012 Toolbox.com and message author.
Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
Sunny  

achievement
 
Mark as helpful
View this online
Ask a new question
 
In the Spotlight
Have an SAP Question? Ask Your Peers at Toolbox for IT

_.____.__

0 comments:

Post a Comment

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