Transformation routine used for GR as at posting date (0GR_VAL_PD KF)

HI all,
          I have problem in 2lis_02_scl transformation Routine where i am not getting corect data for GR as at posting date (0GR_Val_pd) KF.
Can anyone tell me what routine shall i try to use.
Thanks n Regards,
Gaurav Sekhri

HI Gaurav,
The code which you have given does not specify the desired result which you want. Also one more thing you have written a code as follows:
IF ( SOURCE_FIELDS-PROCESSKEY = '002' or  "WE-Wert
SOURCE_FIELDS-PROCESSKEY = '012' or
SOURCE_FIELDS-PROCESSKEY = '022' )
AND SOURCE_FIELDS-BWAPPLNM EQ 'MM'.
RESULT = SOURCE_FIELDS-CPPVLC.
endif.
What is the above condition does not satisfy. you need to specify a RESULT if the above condition is not met like.
IF ( SOURCE_FIELDS-PROCESSKEY = '002' or "WE-Wert
SOURCE_FIELDS-PROCESSKEY = '012' or
SOURCE_FIELDS-PROCESSKEY = '022' )
AND SOURCE_FIELDS-BWAPPLNM EQ 'MM'.
RESULT = SOURCE_FIELDS-CPPVLC.
ELSE.
REULT  = " Your desired result if condition is not met".
endif.
Hope it helps.
Regards,
Satyam

Similar Messages

  • Tables/FM for opening/closing stock for material on given posting date

    Hi All,
    I had requirement of find the opening/closing stock for material on given posting date. The values we can find out using TCode - MB5B.
    But I cannt use MB5B to extract data because I need to find detials for thousands of material.
    Can you please adivce if their is any FM or tables through which i can find this detial on any given date apart from current date.
    Thanks & Regards,

    Hi,
    [https://forums.sdn.sap.com/click.jspa?searchID=19631709&messageID=6593903]
    [https://forums.sdn.sap.com/click.jspa?searchID=19631709&messageID=6630975]

  • Any Standard FM  for material stocks on posting date  using  Tcode  MB5B

    Hi,
    I  need   Standard  FM  to get  material stocks on posting date  using   Tcode   :   MB5B
    Stock type  i am using  is  : Storage Location/Batch Stock
    the  Input   i am  providing  is    Material, Plant , Storage Location, selection  date From , selecDate To.
    Then   i need  to get  data  that it  provides   header  and  document  item level.
    Can u please tel me  how do i get  that  material stock data  on posting date and in which tables
    it will be populated in the database.
    ITs required  can u take view and post info
    Thanks & Regards
    sivakumar kasa
    Edited by: siva kumar kasa on Dec 21, 2010 2:30 PM
    Edited by: siva kumar kasa on Dec 22, 2010 7:15 AM

    hi Rehan,
    I have checked all settings also enhancement  but there is no as such control to restrict backposting within current period
    I think its self disipline action not to post backdated GI when GR is done on later date
    Vishal...

  • BAPI/FM for change Material Document Posting date

    Hi Experts,
    Is there any BAPI/FM for change a material document posting date.
    Its urgnt.

    Hi You can check the source code of MB02.
    i doubt whether you can change the date , hope so you have to reverse the document asd post it again.
    check & use MB_CHANGE_DOCUMENT at your own risk.

  • FMS for Udf based on Posting Date + 4 weeks and +4 weeks excluding weekends

    Hello,
    Requirement 1
    Have made a udf in the Sales Order Header as Manfacture Drawing Rel Date U_FDRDT in which I want that if a Sales Order posting date is 15/12/2010 then this udf should automatically update with the + 4 weeks date i.e 14/01/2011
    Requirement 2
    Another UDF is also made as U_FRDWDT in which I want that if the Sales Order posting date is 15/12/2010 then this udf should automatically update + 4 weeks EXCLUDING Fridays and Saturdays which is there in the 4 weeks hence the result should be e.g 27/01/2010 which is excluding Fridays and Saturdays.The requirement is as such that Friday and Saturday are holidays for the company and the client wants to have this field updated on + 4 weeks basis but it should not consider Friday and Saturday as its holiday.
    Also note in SAP base setup Holiday Master Weekend is set from Friday to Saturday. Will this help in any way of updating the field or through formated search.
    Kindly advise what best solution can be given
    Regards,
    Soni

    Hi,
    One question per thread. This is forum rule.
    Here is FMS for the 1st one:
    SELECT DateAdd(WW,4,$[ORDR.DocDate\])
    Please post another for the 2nd.
    Thanks,
    Gordon

  • Regarding start routine used for lookups

    Hi All,
    I am doing a lookup whose logic is being defined in start routine. My requirment is like this.
    I am having an infoobject(1) having a master data and it also have an attribute having the master data too.
    Now I am having one more object(2) having the masterdata and an attribute with out data.
    In my routine I have defined a logic to compare two infoobjects. If they are equal then load the data of the attribute of first infoobject into the second infoobject.
    I have defined the logic like this in routine.
    SELECT /BIC/Z_LOOKUP2
                         FROM /BIC/Z_LOOKUP1
        INTO /BIC/Z_LOOKUP4
           FOR ALL ENTRIES IN SOURE_PACKAGE[]
        WHERE  /BIC/Z_LOOKUP3 = SOURCE_FIELDS-/BIC/Z_LOOKUP1
        END SELECT.
    I am geeting an error as /BIC/Z_LLOKUP1 IS NOT defined in ABAP dictionary as a table,.
    How can I resolve this.
    Please help me.
    Z_LOOKUP1 is having Z_LOOKUP2 as an attribute and,
    Z_LLOKUP3 is having Z_LLOKUP4 as an attribute.
    Thanks.
    Vinay,

    Hi,
    Just check the master data table created for your infoObject Z_LOOKUP1. It would be something like /BIC/PZ_LOOKUP100.
    If you are still getting the error, post your exact code here and we can take a look.
    Hope this helps!
    Regards,
    Saurabh

  • Itunes says I have backed up my phone to icloud at a previous date. When I log into icloud with the same apple ID and password I use for Itunes it says no data. Now I do not have access to my older phone and I cannot update my newer phone?

    My older phone broke but, I had updated it 2 months before through itunes to icloud. It even says the date I did this on Itunes. However my icloud is empty. What happened to all my stuff???  thank you

    Hi peacegraffiti,
    Thank you for using Apple Support Communities. 
    I understand you are having difficulties restoring your new iPhone from a previous iCloud backup. The following article provides information to help restore from an iCloud backup. 
    Get help restoring from an iCloud backup - Apple Support
    Cheers,
    Jeff D. 

  • Exit to be used for hr to update master data

    Hi,
    Can anyone tell me which exit shud be used to update master data in HR module.
    My extraction structure is  HRMS_BW_IS_ATTENDANCE.
    i have to append 'ndays' n to fill this field which exit shud be used.
    Thnx,
    Regards,
    Nishu Gupta

    Hi,
    Transaction Data:
    EXIT_SAPLRSAP_001
    Master Data:
    Attribute:       EXIT_SAPLRSAP_002
    Text:             EXIT_SAPLRSAP_003
    Hierarchy :     EXIT_SAPLRSAP_004
    Happy Tony

  • WAAS 7341 used for Caching servers in the Data Center?

    I have A substantial start on a global WAAS delployemnt with 60+
    sites and counting. We are looking at leveraging the WAE-7341's running WAAS 4.1.5x
    to perform an internet cacheing solution in out Internet gateway locations globally.
    Typically, WAAS works in pairs. So My question is is for a NON-WAAS site, can the WAE perform as a Caheing server for site that dont have WAAS?
    ACNS software coudl run in the same hardware but My understanding is this software is being phased out in leiu of WAAS.
    Any thoughts or comments on this?

    Hi Todd,
    WAAS requires a peer in order to optimize traffic.  As you mentioned, ACNS is a viable one-sided solution for Internet proxy caching.  I haven't heard anything about ACNS being discontinued.  In fact, you can even run ACNS as a virtual blade on WAAS.
    Zach

  • Use FI Posting date as a filter value, can I get YTD for current year?

    Dear Expert,
    I work on a BI report which calculate the YTD key figure (restricted by 0CYEAR and =< 0CMONTH).
    One of the requirement for the report is to allow user to enter a value for a date using FI Posting date (although this is optional).
    Without entering the value for FI Posting date, my report works fine.
    But once FI Posting date is entered, no data found.
    I expect that when the value for the FI Posting date is entered, the YTD value will be calcuated starting from the Jan 1 of that FI Posting year to the FI Posting date entered.
    But this seems not happen.
    Could you help me to resolve this problem?
    If there is a better solution, please let me know.
    Very appreciated.
    Arthur

    Hi Dipika,
    Thanks for your reply.
    In my report, FI Posting date is a free characteristic, which user can optionally select it and fiter it for a specific FI Posting Date. Do you consider it as a global filter?
    my query structure is as below:
    rows: profit center, department, manager
    columns: YTD for current year, YTD for Previous year, the difference betwwen the two
    The requirement is when user enter a FI Posting date, use it  to restrict the KF shown above.
    For example, if the FI posting date is March 15, 2008, then YTD for current year should be restricted by the period between Jan 1, 2008 and March 15, 2008 and YTD for previous year should be restricted by Jan 1, 2007 and March 15, 2007.
    Do you have any idea how to implement this requirement in term of FI Posting date?
    Thanks and appreciated.
    Arthur

  • Target value in transformation routine

    Hi
    How can I get the value of target field, which is already present, in the transformation routine?
    For Example, I have a transformation between ODS DS1 and ODS DS2. DS1 has fields DS1_F1, DS1_F2 and DS2 has fields DS2_F1, DS2_F2. Now I have written a transformation routine for target field DS2_F1 with input DS1_F1. In this routine, I want to get the value of DS2_F1, which is already present, before the result is being updated. How can I get it?
    Thanks & Regards
    Tejo

    Hi,
    Use end routine concept here .
    Regards,
    Anil Kumar Sharma .P

  • 2lis_02_scl extract records with wrong posting date for Good Receipts.

    Hi Experts,
    We are currently having issue of mismatch between BW Schedule Line data with R/3 values for the Goods Receipts posting date updating incorrectly in to BW.
    Example.
    In table EKBE purchase order history we have following records.
    MANDT EBELN        EBELP   ZEKKN VGABE GJAHR BELNR      BUZEI BEWTP BWART BUDAT      MENGE
    501   5600453404   00010   00    1     2010  5012473031 0001  E     101   23.01.2010        1.250,000
    501   5600453404   00010   00    1     2010  5012473031 0002  E     101   23.01.2010        1.250,000
    501   5600453404   00010   00    1     2010  5012473031 0003  E     101   23.01.2010        1.250,000
    501   5600453404   00010   00    1     2010  5012693310 0001  E     101   26.02.2010        1.250,000
    Which means we have on posting date of 23.01.2010 1250*3 i.e. 3750 quantity of Goods Receipts.
    However when we check the extractor we get multiple records in internal table C_T_DATA and in psa.
    Line BWV ETENR   SLFDT              MENGE    ROCA BEDAT                            BUDAT          EBELN
           ORG                                                        NCEL
    1     001     0001     20100125     3750.000          20100113     ZNB     F     00000000     5600453404
    2     001     0002     20100226     1250.000          20100113     ZNB     F     00000000     5600453404
    3     002     0001     20100125     3750.000     X     20100113     ZNB     F     20100123     5600453404
    4     002     0001     20100125     3750.000          20100113     ZNB     F     20100123     5600453404
    5     003     0001     20100125     3750.000     X     20100113     ZNB     F     20100127     5600453404
    6     003     0001     20100125     3750.000          20100113     ZNB     F     20100127     5600453404
    7     002     0001     20100125     3750.000     X     20100113     ZNB     F     20100226     5600453404
    8     002     0001     20100125     3750.000          20100113     ZNB     F     20100226     5600453404
    9     002     0002     20100226     1250.000     X     20100113     ZNB     F     20100226     5600453404
    As can be seen we have record no 8 for ETENR (Schedule line 1) with posting date 26.02.2010 and another record with posting date 23.01.2010.
    Since we are getting 2 records the record with incorrect posting date overwrites the record with correct one.
    Any idea if this could be a standard extractor problem or any other way to resolve this issue.
    Any help would be appreciated.

    First of all, are you using a staging DSO? (You should ideally)
    If yes, is it a Write Optimized DSO? (Again, this is ideal)
    If its a standard DSO, the values maybe over-writing upon activation.
    You have 3 records (quantity = 1250 * 3) that have been receipted on 23.01.2010, where Posting Date = 23.01.2010.
    You also have a record (quantity = 1250 * 1) that has been receipted on 26.01.2010. Posting date = 26.01.2010.
    Now, in RSA3 & in PSA you can see more records than intended.
    This is because you have before & after images. (ROCANCEL = X or blank).
    ROCANCEL = X --> Before Image (record before change)
    ROCANCEL = blank --> After Image (record after change)
    This is a standard property of the extractor.
    Now, we also have something known as BWVORG (Process Keys). Each process, i.e. creating a PO, Goods Receipt, Invoice etc.. have different Process Keys.
    Creation - 001
    Goods Rcpt. - 002
    Invoice - 003
    We can see that record 8, i.e. BWVORG = 002 (GR) has been modified on 26.01.2010.
    That is why there is before image and after image.
    Which one should be the correct posting date? 23.01.2010?
    Normally in a Write optimized DSO, you will have all the records (before and after images & others as well).
    I hope this helps.
    Please let me know if otherwise.

  • How to know infopackage request ID in transformation routine ?

    Hi All,
    I'm looking for the ABAP code to know the infopackage request ID in transformation start or end routine
    I can see this ID when I clic on "manage" on a PSA (looks like for instance REQU_D706H24SFFUIGNKMQMPPAIJLM)
    I need it in transformation routine
    Thanks for your help
    Sebastien Lepeltier

    Sorry Sat but again with the code :
    field-symbols: <l_requnr> type any.
    data: l_requnr_fieldnm type string value 'l_requnr'.
    assign (l_requnr_fieldnm) to <l_requnr>.
    I have this error message in debug mode : Field symbol <L_REQUNR> is not yet assigned
    Thanks Joe for the answer but in
    IMPORTING
    request TYPE rsrequest
    datapackid TYPE rsdatapid
    request and datapackid are filled with information of the current DTP not infopackage source
    Sebastien

  • Idoc for Customer to Customer Posting

    Hi
    I want to upload finance data in SAP using IDOCS through XI
    I'm using the following idocs
    1) GL to GL Posting ........ ACC_GL_POSTING01 (Accounting: General G/L Account Posting)
    2) GL to Customer Posting ..... ACLREC01 (Posting in accounting: Billing document)
    3) Customer to Customer posting ......... ?
    Which idoc should be used for Customer to Customer posting ?
    I want to Debit one Customer & Credit the other Customer.
    Please Suggest
    Regards
    Abhijit

    Hi ,
    You can try this question in the ABAP Help instead in XI , So that you may get more help
    Regards,
    Jude

  • Validation for posting date.

    hi,
    i am creating a validation for fb01 where the posting date should not be less than the posting date for last document posted for same doc type.
    we have assigned different number ranges for different a set of document types.
    From which table can i get the data regarding number ranges used for particular doc type or group of doc types.
    for example i need the nyumber range assigned to doc type 'SA' and the last doc no. assigned to a document.
    Regards,
    Tarun Bahal

    i have checked FBN1.... i beleive its for creating number ranges.....
    how do we find out which range is assigned to which doc type.
    Regards,
    Tarun

Maybe you are looking for

  • Adobe cloud membership

    Hi, I would like to pay an annual membership for adobe cloud and all its products. Will I be able to use the products on multiple machines or do I have to download the programs specifically on one? Obviously I would like to develop on a powerful pc a

  • Labview 8.0.1 installer error

    hello all, I am having an issue with building an installer package in labview 8.0.1.  I can build an executable every time, but when i try to build an installer I get the error message in the attatched txt file (its to lengthy to paste here) .  this

  • Windows Installati​on Disk

    Hello, I am using a notebook by the name of HP Pavilion dv6000. Everything was running alright then suddenly I had a problem. When I tried to open my PC I couldn't it asked me for the Windows Installation Disk. I'm pretty sure that HP didn't give me

  • Auto payment program - Customer is Vendor & vis-a-vis

    Hello Experts, if there's a customer who is our vendor & vis-a-vis...how iwll the auto payment program help in netting the receivables with payables?

  • Crystal Reports version XI Rel 2 Evaluation Copy Uninstall

    Post Author: ebh CA Forum: Data Connectivity and SQL I downloaded the evaluation copy of Crystal Reports XI rel 2, after satisfying myself that it would do what I needed, I uninstalled it.  Now my version of Visual Studio 2005 will not function when