ME21N - new field added and same value posted to it for all line items

hi all
i have added new field under item  level in me21n screen.
data for new filed fetched from tables with values entered in header level material number.
For one record, it is ok
but for multiple records, same value is fetched for all line items
i have written coding in screen exit for 0111
and function exits EXIT_SAPMM06E_016 and EXIT_SAPMM06E_018
how to solve
pl help
regards
senthil

MODULE STATUS_0111 OUTPUT.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'xxx'.
  if sy-tcode eq 'ME23N' or sy-tcode eq 'ME23'.
    LOOP at SCREEN.
      if screen-group1 ne 'PCS'.
        screen-input = 0.
        MODIFY SCREEN.
      endif.
    ENDLOOP.
  ENDIF.
  TYPES : BEGIN OF ty_cabn1,
         atnam TYPE cabn-atnam,
       end of ty_cabn1.
  DATA : itab_cabn1 TYPE STANDARD TABLE OF ty_cabn1 INITIAL SIZE 0,
         wa_cabn1 TYPE ty_cabn1.
  TYPES : BEGIN OF ty_cawn1,
    atinn TYPE cawn-atinn,
    atzhl TYPE cawn-atzhl,
    atwrt TYPE cawn-atwrt,
    end of ty_cawn1.
  DATA : itab_cawn1 TYPE STANDARD TABLE OF ty_cawn1 INITIAL SIZE 0,
         wa_cawn1 TYPE ty_cawn1.
  TYPES : BEGIN OF ty_cawnt1,
   pcs TYPE cawnt-atwtb,
    atinn TYPE cawnt-atinn,
    atzhl TYPE cawnt-atzhl,
    atwtb TYPE cawnt-atwtb,
      end of ty_cawnt1.
  DATA : itab_cawnt1 TYPE TABLE OF ty_cawnt1,
         wa_cawnt1 TYPE ty_cawnt1.
  TYPES : BEGIN OF ty_pcs1,
pcs TYPE cawnt-atwtb,
  atwrt TYPE cawn-atwrt,
  atwtb TYPE cawnt-atwtb,
    end of ty_pcs1.
  DATA : itab_pcs3 TYPE TABLE OF ty_pcs1,
         itab_pcs4 TYPE TABLE OF ty_pcs1,
         wa_pcs1 TYPE ty_pcs1.
  TYPES : BEGIN OF ty_pcsn,
  matnr TYPE ausp-objek,
  ebelp TYPE dynpread-stepl,
  atwrt TYPE cawn-atwrt,
  atwtb TYPE cawnt-atwtb,
  END OF ty_pcsn.
  DATA : itab_pcsn TYPE TABLE OF ty_pcsn,
         wa_pcsn TYPE ty_pcsn.
  TYPES : BEGIN OF ty_ausp1,
     objek TYPE ausp-objek,
     atinn TYPE ausp-atinn,
     atwrt TYPE ausp-atwrt,
   END OF ty_ausp1.
  DATA : itab_ausp1 TYPE STANDARD TABLE OF ty_ausp1 INITIAL SIZE 0,
         wa_ausp1   TYPE ty_ausp1.
  DATA : param_name1(35) TYPE  c.
  DATA: progname1      TYPE sy-repid,
        dynnum1        TYPE sy-dynnr,
        dynpro_values1 TYPE TABLE OF dynpread,
        dynpro_values2 TYPE TABLE OF dynpread,
        field_value1   LIKE LINE OF dynpro_values1,
        ematn1         TYPE mara-matnr.
  if sy-tcode ne 'ME23N' and sy-tcode ne 'ME23'.  "psk
    clear : itab_cabn1,itab_cawn1,itab_cawnt1,itab_pcs3,itab_pcs4,itab_pcsn,itab_ausp1.
    clear : wa_cawn1,wa_cawnt1,wa_pcs1,wa_ausp1.
    if sy-uname eq 'IBM_ABAP'.
      param_name1 = '000000001'.
    else.
      param_name1 = '000000013'.
    endif.
    SELECT atnam
    FROM cabn
    INTO CORRESPONDING FIELDS OF TABLE itab_cabn1
    WHERE atinn  = param_name1.
    select *
    FROM cawn
    into CORRESPONDING FIELDS OF TABLE itab_cawn1
    WHERE atinn = param_name1.
    if itab_cawn1[] is NOT INITIAL.
      SELECT atinn atzhl atwtb
      FROM cawnt
      INTo CORRESPONDING FIELDS OF TABLE itab_cawnt1
      FOR ALL ENTRIES IN itab_cawn1
      WHERE atinn = itab_cawn1-atinn
      AND atzhl = itab_cawn1-atzhl.
    endif.
    if itab_cawnt1[] is NOT INITIAL.
      sort itab_cawnt1 by atinn atzhl.
      loop at itab_cawnt1 INTO wa_cawnt1.
        READ TABLE itab_cawn1 INTO wa_cawn1 with key atinn = wa_cawnt1-atinn
                                                     atzhl = wa_cawnt1-atzhl BINARY SEARCH.
        if sy-subrc eq 0.
       CONCATENATE wa_cawn-atwrt '->' wa_cawnt-atwtb INTO wa_cawnt-pcs.
       MODIFY itab_cawnt FROM wa_cawnt TRANSPORTING pcs.
       wa_pcs-pcs = wa_cawnt-pcs.
          wa_pcs1-atwrt = wa_cawn1-atwrt.
          wa_pcs1-atwtb = wa_cawnt1-atwtb.
          append wa_pcs1 to itab_pcs3.
        ENDIF.
        CLEAR : wa_cawnt1,wa_cawn1, wa_pcs1.
      ENDLOOP.
    ENDIF.
    CLEAR: dynpro_values1, field_value1.
dynpro_values-FIELDNAME = 'MEPO1211-EMATN'.
APPEND dynpro_values.
    field_value1-fieldname = 'MEPO1211-ematn'.
    APPEND field_value1 TO dynpro_values1.
    progname1 = 'SAPLMEGUI'.
    dynnum1 = '1211'.
    CALL FUNCTION 'DYNP_VALUES_READ'
      EXPORTING
        DYNAME                               = progname1
        DYNUMB                               = dynnum1
  TRANSLATE_TO_UPPER                   = ' '
     REQUEST                                = 'A'
  PERFORM_CONVERSION_EXITS             = ' '
  PERFORM_INPUT_CONVERSION             = ' '
  DETERMINE_LOOP_INDEX                 = ' '
  START_SEARCH_IN_CURRENT_SCREEN       = ' '
  START_SEARCH_IN_MAIN_SCREEN          = ' '
  START_SEARCH_IN_STACKED_SCREEN       = ' '
  START_SEARCH_ON_SCR_STACKPOS         = ' '
  SEARCH_OWN_SUBSCREENS_FIRST          = ' '
  SEARCHPATH_OF_SUBSCREEN_AREAS        = ' '
      TABLES
        DYNPFIELDS                           = dynpro_values1
   EXCEPTIONS
     INVALID_ABAPWORKAREA                 = 1
     INVALID_DYNPROFIELD                  = 2
     INVALID_DYNPRONAME                   = 3
     INVALID_DYNPRONUMMER                 = 4
     INVALID_REQUEST                      = 5
     NO_FIELDDESCRIPTION                  = 6
     INVALID_PARAMETER                    = 7
     UNDEFIND_ERROR                       = 8
     DOUBLE_CONVERSION                    = 9
     STEPL_NOT_FOUND                      = 10
     OTHERS                               = 11
    IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
READ TABLE dynpro_values1 INTO field_value1 with KEY fieldname = 'MEPO1211-EMATN'.
    LOOP at dynpro_values1 INTO field_value1 WHERE fieldname = 'MEPO1211-EMATN'.
      clear ematn1.
      if sy-subrc eq 0.
        ematn1 = field_value1-fieldvalue.
      endif.
      if ematn1 is not INITIAL.
        clear : wa_cawn1,wa_cawnt1,wa_pcs1,wa_ausp1.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            INPUT  = ematn1
          IMPORTING
            OUTPUT = ematn1.
        select *
        FROM ausp
        INTO CORRESPONDING FIELDS OF TABLE itab_ausp1
        WHERE objek = ematn1
        and atinn = param_name1.
        CLEAR itab_pcs4.
        if itab_ausp1[] is not INITIAL.
          sort itab_ausp1 by atinn atwrt.
          sort itab_cawn1 by atinn.
          READ TABLE itab_ausp1 INTO wa_ausp1 INDEX 1.
          loop at itab_cawn1 INTO wa_cawn1 WHERE atinn = wa_ausp1-atinn AND atwrt = wa_ausp1-atwrt.
            READ TABLE itab_cawnt1 INTO wa_cawnt1 WITH KEY atinn = wa_cawn1-atinn
                                                            atzhl = wa_cawn1-atzhl.
            if sy-subrc eq 0.
              wa_pcs1-atwrt = wa_cawn1-atwrt.
              wa_pcs1-atwtb = wa_cawnt1-atwtb.
              append wa_pcs1 to itab_pcs4.
              wa_pcsn-matnr = wa_ausp1-objek.
              wa_pcsn-ebelp = field_value1-stepl.
              wa_pcsn-atwrt = wa_cawn1-atwrt.
              wa_pcsn-atwtb = wa_cawnt1-atwtb.
              APPEND wa_pcsn to itab_pcsn.
            ENDIF.
            clear : wa_ausp1,wa_cawn1,wa_cawnt1.
          ENDLOOP.
        ENDIF.
       clear wa_pcs1.
       read TABLE itab_pcs4 into wa_pcs1 index 1.
       if sy-subrc eq 0.
         EKPO_CI-ZPCS = wa_pcs1-atwrt.
       endif.
      ENDIF.
    ENDLOOP.
    CLEAR: field_value1.
    LOOP at dynpro_values1 INTO field_value1 WHERE fieldname = 'MEPO1211-EMATN'.
      clear wa_pcsn.
      if field_value1-fieldvalue is not INITIAL.
        read TABLE itab_pcsn INTO wa_pcsn with key  matnr = field_value1-fieldvalue
                                                    ebelp = field_value1-stepl.
        if sy-subrc eq 0.
          clear  EKPO_CI-ZPCS.
*EKPO_CI-ZPCS = wa_pcs1-atwrt.
          EKPO_CI-ZPCS = wa_pcsn-atwrt.
        endif.
      endif.
    ENDLOOP.
   CLEAR: field_value1, dynpro_values1.
   progname1 = 'SAPLXM06'.
   dynnum1   = '0111'.
   field_value1-fieldname = 'EKPO_CI-ZPCS'.
   APPEND field_value1 TO dynpro_values1.
   if ematn1 is not INITIAL.
     clear wa_pcs1.
     read TABLE itab_pcs4 into wa_pcs1 index 1.
     if sy-subrc eq 0.
       EKPO_CI-ZPCS = wa_pcs1-atwrt.
     endif.
   ENDIF.
  endif.
ENDMODULE.                 " STATUS_0111  OUTPUT
Function exits:
^^^^^^^^^^^^^^^^^
EXIT_SAPMM06E_016
^^^^^^^^^^^^^^^^^
INCLUDE ZXM06U41 .
DATA XFISTL LIKE EKPO-FISTL.
TABLES: ADRC, T001W.
DATA: PLANT LIKE T001W-WERKS.
SELECT SINGLE * FROM T001W WHERE WERKS = I_EKPO-WERKS.
SELECT SINGLE * FROM ADRC WHERE ADDRNUMBER = T001W-ADRNR.
XFISTL = ADRC-SORT2.
SET PARAMETER ID 'FIS' FIELD XFISTL.
* Added For PCS 12.11.2010
DATA : fs_ekpo type EKPO_CI.
if sy-tcode = 'ME22N' or sy-tcode = 'ME23N'.
*  if tekpo-zpcs is INITIAL.
*    message e000(zmm) with 'PCS Type should be chosen'.
*  endif.
  loop at tekpo.
    if ( tekpo-ebeln eq i_ekpo-ebeln and tekpo-ebelp eq i_ekpo-ebelp ).
      ekpo_ci-zpcs = tekpo-zpcs.
    endif.
  ENDLOOP.
endif.
^^^^^^^^^^^^^^^^^
EXIT_SAPMM06E_018
^^^^^^^^^^^^^^^^^
INCLUDE ZXM06U40 .
E_CI_EKPO-ZPCS = EKPO_CI-ZPCS.
E_CI_UPDATE = 'X'.

Similar Messages

  • Post long text for document line item via FI-GL Inbound IDoc

    Hi guru,
    I am trying post extension ZFIDCP02 linked basic type FIDCCP02 and message type FIDCC2 IDoc in R/3 (4.6c) via IBM Websphere (Inbound IDoc),
    I am use inbound function module IDOC_INPUT_FIDCC2 and activate exit 008 (EXIT_SAPLF050_008) and exit 002 (EXIT_SAPLF050_002),
    In the extension ZFIDCP02 and under E1FISEG, I am add my segment  ZITEXT include field TDSPRAS, TDID, TDOBJECT, TDLINE.
    I am send  ZFIDCP02 IDoc via IBM Websphere no error  but all field TDSPRAS, TDID, TDOBJECT, TDLINE in my segment  ZITEXT not post in FI-GL.
    How can I  post long text for document line item (ZITEXT) in FI-GL ?.
    and I'm mean post ZITEXT to bank statement via IDOC.
    Please throw light on this  and  may be I  'm want solution or example ABAP code for exit 002 (EXIT_SAPLF050_002).
    Thanks in advance,
    Akkapong Pirachai
    CAT Telecom
    Edited by: Akkapong Pirachai on Aug 20, 2008 7:40 AM

    Close question because long time for answer.

  • Deleting and Adding components in a Sub contracting PO, for every line item

    Hi,
    I have requirement where in I need to change the Item category from Blank to 'L' for a given Line item, and for this Line Item I need to go to the Delivery Schedule lines and delete the existing Components and add new components to every Delivery Schedule line. This is going to be a LSMW object with a custom program.
    I tried for recording ME22N, but couldn't do this as ME22N  is not BDC friendly, and in ME22 the Item category field is Display only. I also tried with Function modules/BAPIs but nothing seems to be working out.
    Can anybody help me get a solution to this requirement. Would appreciate a quick response as its a priority requirement for me.
    Thanks in Advance,
    Saleem.
    Ph : +91-9845627631

    1. You will definitely create two subcontracting info records for two raw materials say RAW1 and RAW2.
    2. There will be two seperate production versions for these two materials.
    3. Update respective production versions in respective subcontracting info-records.
    4. This will help to upload the alternate BOM even you changed the material from PO
    Amol

  • Vendor field empty for RE line items in FBL3N

    dear all-
    I'm experiencing a strange situation. Instead of using the MM-report, I want to do a GRIR analysis in FI. When I run FBL3N for the GRIR account I see that for the goods-receipt related documents (doc type WE) field like puchase order and vendor number are populated (and contain a value). However for the line items that come from the invoice the field purchase order is filled but the field vendor is blank.
    I did have a look at the BSEG table for the WE- and RE-related documents: for all line items of the WE document (goods receipt) the fields purchase order and vendor contained a value, for the RE document (invoice receipt) all line items have a value for purchase order but only the first line item (vendor line) has a value for the field vendor. On all the other line items the vendor field is blank.
    Looks pretty strange to me, who has a good solution?
    thx
    Ben

    hi Vishal-
    Thanks for the BSIK, BSIS tip!
    In the meantime I did find report RFWERE00. I was able to generate a list that indeed showed the vendor number on the GRIR account both from the GR- and RE-document. Didn't have time yet to go over the code to figure out where this report gets its data from.
    The report offers options to do actual clearing and do postings ... I'm not interested in that. Only in the list. I have a start now ...
    ... If you have another I idea that prevents me from creating a customer report ... I'm eager to hear it!
    rgds
    Ben

  • SRM 7 - defaulting values for multiple line items on shopping cart

    Hi,
    We are using SRM 7 - Employee self service - Punch out catalogues and describe requirements.
    Our scenario is this:
    - User is responsible for creating shopping carts for numerous cost centres/other users
    - Shopping cart will have multiple line items (but the cost centre/other user will be same for all line items)
    - Is it possible to define in a shopping cart that all line items will have a specific value?  E.g. all line items will be assigned to a specific cost centre?
    I know about assigning dedault values in PPOMA_BBP - but our situation is where user does not want to use this default value this time, but another value
    Any suggestions?
    Thanks

    Thanks Alex for quick reply
    To confirm, did you use the BBP_DOC_CHECK_BADI (in conjunction with the BBP_ITEM_CHECK_BADI) to look at different cost centres on the multiple lines on the shopping cart?
    Also - did you use the same BADI to give user opportunity to enter a default cost centre that is then automatically applied to all line items on the cart?
    Thanks
    Azam

  • New field added to cube, delta DTP from DSO to cube is failing

    Dear all,
    Scenerio in BI 7.0 is;
    data source -delta IPs-> DSO -
    delta DTP---> Cube.
    Data load using proces chain daily.
    We added new field to Cube --> transformation from DSO to cube is active, transport was successful.
    Now, delta from DSO to cube is failing.
    Error is: Dereferencing of the NULL reference,
    Error while extracting from source <DSO name>
    Inconsistent input parameter (parameter: Fieldname, value DATAPAKID)
    my conclusion, system is unable to load delta due to new field. And it wants us to initialize it again ( am i right ?)
    Do I have only one choice of deleting data from cube & perform init dtp again ? or any other way ?
    Thanks in advance!
    Regards,
    Akshay Harshe

    Hi Durgesh / Murli,
    Thanks for quick response.
    @ durgesh: we have mapped existing DSO field to a new field in cube. So yes in DTP I can see the field in filter. So I have to do re-init.
    @ Murli: everything is active.
    Actully there are further complications as the cube has many more sources, so wanted to avoid seletive deletion.
    Regards,
    Akshay

  • Apple TV worked until today. Message says unsupported signal check your output device.  I have checked hdmi cable with another device and it's fine. Put on a different tv and same message.  Went out yesterday and bought a new Apple TV and same problem.

    Apple TV worked until today. Message says unsupported signal check your output device.  I have checked hdmi cable with another device and it's fine. Put on a different tv and same message.  Went out yesterday and bought a new Apple TV and same problem.

    Which TV do you have.
    You may wish to try the following:
    Press and hold the menu and the up button simultaneously on the remote for six seconds, the Apple TV should then begin to cycle through the various resolutions available to it at 20 second intervals.. If you see a picture appear up on your screen, use the remote to scroll down to the OK option and select it.

  • The new field blur and tilt shift filters have stopped working

    The new field blur and and tilt shift filters worked a few times but are now greyed out in the menus. Any ideas why? Thanks.

    Did you check the settings Chris mentioned? Your issue sounds like there might be a video card or driver issue, which can disable the GPU related features and give you a lesser version of the blur filters. See this link for some troubleshooting suggestions. See if issues with the video card have disabled - Edit>preferences>performance use graphics processor.  Also check the advanced settings drawing modes. Be sure you have the current driver (system is updated and current on mac or go to the video manufacturer's website for pc) . That is often the cure.
    You might want to copy your system information (photoshop help>system info)  here for us to look at.
    Pattie

  • Have new MC544LL/A and same old problem"The ipod cannot be synced. A duplicate filename was specified."Is this a "apple or Itune" problem?

    Have new MC544LL/A and same old problem"The ipod cannot be synced. A duplicate filename was specified."Is this a "apple or Itune" problem?

    I fought this problem for WEEKS with no success.  iTunes on Windows 7 x64.  I tried running it as Administrator.  I tried every fix I could find here and on Youtube and nothing.  Any time I was in iTunes and switched focus to another Window like Outlook or something it would pop this error message up again.  I reinstalled iTunes from scratch.  This did NOT fix it, but it gave me a clue.  I figured it had to be my iTunes library which is stored on an external HD.
    After poking around in the library for a while I thought it might be a file that had been set to Read Only so I did an "attrib -r e:\itunes /s"  to clear all of them all.  This wasn't the problem but it alerted me to a file it couldn't clear.  The file was iT.tmp and it couln't clear that because the file was corrupt.  I deleted it but that still didn't fix it.
    I finally did a "chkdsk e:\itunes /f" and let it run through.  It found the error in iT.tmp, fixed it and now iTunes works fine again.

  • Adding a new schedule line for a line item using bapi_po_change

    hi experts,
    can i know how to add a new schedule line for a line item using<u> bapi_po_change</u>. what are the parameters that need to be filed. i filled poitem with total quantities and poschedule table with 2 different schedule lines and passing as the parameter.but then i get the error saying item 0000 doesnt exist

    Hi,
    Please check if you have properly populated the following fields in POSCHEDULE:
    PO_ITEM
    SCHED_LINE
    and the other fields required for your schedule line such as delivery date and quantity, etc.
    After that, make sure to properly populate fields in POSCHEDULEX:
    PO_ITEM -> same value as found in POSCHEDULE
    SCHED_LINE -> same value as found in POSCHEDULE
    All other values populated in POSCHEDULE should be ticked as 'X' in POSCHEDULEX.
    Kind Regards,
    Darwin
    Kind Regards,
    Darwin

  • Can I creat an new iCloud account and make it the primary one for my backups and buy extra iCloud storage for it?  Thank you

    Can I creat an new iCloud account and make it the primary one for my backups and buy extra iCloud storage for it?  Thank you

    Hey Hindfromlondon,
    Welcome to Apple Support Communities.  Since you are posting here, I take it you already have an Apple ID.  
    You can setup that Apple ID to work with iCloud.  See:
    Set up your Apple ID for iCloud and iTunes - Apple Support
    And you usually want to stick with one Apple ID as having multiples can cause confusion (especially with purchases).
    Frequently asked questions about Apple ID - Apple Support
    What is an Apple ID?
    An Apple ID is a user name you use for everything you do with Apple. Creating an account for an Apple service, such as the iTunes Store or the App Store, creates an Apple ID. Apple ID allows you to access other Apple services. You don't have to create a new account for each service—just use your Apple ID.
    For a complete list of all of the places you can use an Apple ID, see Where do I use an Apple ID.
    and further down:
    I have multiple Apple IDs. Is there a way for me to merge them into a single Apple ID?
    Apple IDs cannot be merged. You should use your preferred Apple ID from now on, but you can still access your purchased items such as music, movies, or software using your other Apple IDs. 
    If you are wondering how using multiple Apple IDs relate to iCloud, see Apple IDs and iCloud.
    Regarding iCloud storage check out
    iCloud storage upgrades and downgrades - Apple Support
    I encourage you to read all about it as there's lots of information out there.
    Take care,
    Nubz

  • HT204053 I have different icloud and iTunes id's and I want to do homesharing for all my devices. I'm trying to set up a new iMac but homesharing is not working. SHould it be the itunes or iCloud id?

    I have different icloud and iTunes id's and I want to do homesharing for all my devices. I'm trying to set up a new iMac but homesharing is not working. Should it be the itunes or iCloud id?

    Welcome to the Apple Community.
    Preferably your iTunes account, but it shouldn't really matter for getting homesharing turned on, as long as it's a valid ID.

  • Rate and accessable value is not displaying for the tax invoice output

    Hello All,
      Rate and accessable value is not displaying for the tax invoice output. Rest of all outputs for invoices shows Rate and accessable value.
    Scenerio is free of charge sales order (samples) removing the goods from pant so excise invoice has been created and also updated. but for tax invoice out put rate and access value is not displaying.
        Pricing procedure: In pricing procedure account keys have not been maintained because there is not gl account upadation during billing for free of charge delivery.
    Thanks & Regards,
    ramesh

    hi Gurpreet,
    You can add values to that transient column programatically,either by getiing the row from the iterator and then row.setAttribute('Column_name','Value');
    Or providing value to it in the SQL...

  • HT201302 I have a new iPod Touch and am trying to download photos for the first time.  Both iPhoto & Image Capture recognize the device but don't seem to recognize the photos, or at least I can't import them.  Nothing happens when I click on anything in e

    I have a new iPod Touch and am trying to download photos for the first time.  Both iPhoto & Image Capture recognize the device but don't seem to recognize the photos, or at least I can't import them.  Nothing happens when I click on anything in either.

    If you manually open iPhoto do you not see the photos?
    Maybe here:
    iOS: Unable to import photos or device not recognized as a camera
    Yu are trying to impoort photos taken by or saved to the iPod, right? If the photos were synced to the iPod then iPhot does not work.

  • Cash Discount Calculated for One Line Item and not for Other

    Hi All,
    We have devloped a Z program which is used to Write of InterCompany AR and AP recon Account to another GL Account. In this program to clear line item we have created a BDC which calls t-code FB05. Thsi program is running perfectly fine for all company codes.
    There is new company code SG20 for which it is not clearing the line items. It has created a Session in SM35, when we analysed the seesin we found that for some line items system is calculating Cash Discount and for some other line items it is not but the payment Term is same for all the douments with 3% 14days.
    I need your help in understanding that why for some line items system calculates the Cash Discout where as for others it is not calculation..also the Posting Date is same for all the documents.
    Please advise what could be the reson for this.
    Thanks!
    Regards,
    VIvek Srivastava

    Hi
    Cash discount is calculated based on the combination of baseline date and payment term conditions.
    Hence please check the baseline date for all the documents, in which the cash discount is not appearing.
    In your case, the possible reasons could be that 1) baseline date is different between these documents or 2) payment terms cash % is manually modified in the line item of the documents.
    Regards

Maybe you are looking for

  • Query on data dictionary results in large number of physical reads

    I don't understand why I am getting 80,000 physicals for this query. I am not looking for help re-writing this. I just don't understand why I would hit the disk at all. My understanding had been that v$views where sql structures that pointed to x$tab

  • Music unlimitted on nokia lumia 620

    Am not getting the unlimited music download service on my replaced lumia 620.is there anything i can do ??

  • PLD - Line Text

    Hi Members, I want to include the line text in the PLD of sale order. I need to include the line text  after the item description is displayed. I am getting the line text in PLD but its not in proper order. I need to show the line text after item des

  • New event - default times

    In month view when I double click on a day to create a new event the timings default to 2300 until 0000. I can't find any way to change these timings - can anyone help?

  • Can I use DeliveryManager just to send email with no document?

    Can I use "oracle.apps.xdo.delivery.DeliveryManager" to just send email without any document attached? or Is this only used to deliver the documents by email? I just want to use DeliveryManager just to send email with content in the body of the email