Adding quantity field for the same material number in Table control

Hello Experts,
I have an requirement, where I need to add the quantity field when the material number is repeated in a table control.
Here I show the pop-up message "Material already exists, do you want to add the quantity". If the user clicks on Yes I need to add the quantity.
I created the pop-up message using the FM " POPUP_TO_CONFIRM" and tried to add the quantity filed using COLLECT statement but I couldn't because my non-numeric field value will be different and it will insert new entry with same material in my internal table.
I have a z data base table & internal table with the below fields in it.
Best Regards,
Mani

hi deepthi,
chk a sample one which will help u. <b><i>f4 hlp in table control</i></b>
* Screen flow logic........
PROCESS BEFORE OUTPUT.
*MODULE PBO_MODULE.
PROCESS AFTER INPUT.
*MODULE PAI_MODULE.
PROCESS ON VALUE-REQUEST. "F4
  FIELD EKPO-EBELP MODULE help_ekpo.
* populate screen field from within PROCESS ON VALUE-REQUEST(F4) call
*&      Module  help_responsibility  INPUT
*       text
MODULE help_ekpo INPUT.
**Transport values to table dynpro/screen table control
  DATA: l_stepl LIKE  sy-stepl,
        l_indx  LIKE  sy-stepl.
  DATA: dynpfields        LIKE dynpread OCCURS 5 WITH HEADER LINE.
* Adjust for scroling within table control
  CALL FUNCTION 'DYNP_GET_STEPL'
    IMPORTING
      povstepl        = l_stepl
    EXCEPTIONS
      stepl_not_found = 0
      OTHERS          = 0.
  l_indx = tc_ekpotable-top_line + l_stepl - 1.
          "tc_ekpotable should already have been declared
  REFRESH dynpfields.
  CLEAR   dynpfields.
  dynpfields-fieldname  = 'EKPO-EBELN'.
  dynpfields-fieldvalue = '00010'   "wa_ekpo-ebeln.
  dynpfields-stepl      = l_stepl.
  APPEND dynpfields.
  dynpfields-fieldname  = 'EKPO-EBELP'.
  dynpfields-fieldvalue = '00020'   "wa_ekpo-ebelp.
  dynpfields-stepl      = l_stepl.
  APPEND dynpfields.
  CALL FUNCTION 'DYNP_VALUES_UPDATE'
    EXPORTING
      dyname     = 'SAPLZZ_EKKO'    "Program name
      dynumb     = '0100'           "Screen number
    TABLES
      dynpfields = dynpfields
    EXCEPTIONS
      OTHERS     = 0.
ENDMODULE.                 " help_ekpo  INPUT
rgds
Anver
<b><i>if hlped kindly mark points</i></b>

Similar Messages

  • Email if Notification is created for the same material number

    Hi,
      IS it possible to get a email Automatically when a notification is created for the same material in last ___days/weeks.
    Thanks
    SM

    Yes.  Use the early warning system to send an eamil when ever the number of notifications exceeds a certain number in a given period time for a given group of objects.
    You must have the info structures for QM in LIS activated for this to work.
    Craig

  • Multiple info records for the same material record in the catalog

    Hi Guys,
    I have got sort of a puzzle I can not solve at the moment, maybe some one can help me to solve it. The situation in our system landscape  is as follows:
    Systems:
    SRM 5.0 (Classic implementation scenario)
    ECC 6.0
    SRM-MDM 2.0
    PI 2005
    Material master is maintained in R/3 and the materials are replicated to SRM. From SRM we replicate all materials to the catalog repository in  SRM-MDM.
    As the material master in R/3 is vendor independent, the materials replicated to SRM also have no vendor attached. For the first initial material replication from SRM to the catalog SRM-MDM this also means that the products in the main table of the repository, u2018catalog positionsu2019, will not have a vendor or vendor number attached (i.e. no reference to a source of supply).
    To assign a source of supply in the repository to a product (record) we will use info records which are replicated from R/3 to SRM-MDM.  The mapping for this in the Import Manager can only be based on the product number. As this is the only unique value available which can map a info record to a already existing (but vendor less) ptoduct item in the catalog.
    As long as every item in the repository has only one unique info record, meaning one source of supply with a specific price, there is no issue in the above scenario. Based on the product-id, the info record data will be matched with the material item in the catalog.
    The issue for me arises when multiple info records exists for the same material. The info records can heave different vendors and different prices. All possible vendors should be available in the catalog for the same material (at least this is the requirement ). 
    At this point the product-id will no longer be an unique value. Importing the info records will cause problems, as only one material record is available in the repository for the specific product-id (remember that when doing a initial replication of the material master to the catalog, no vendor data is replicated).
    Does anyone had this issue before, and knows a solution? Is it for example possible during the import of the info records in the Import manager, to duplicate material records in the destination data, based on the number of info records available in the source data for the same product-id. Or is there an other solution that I am missing?
    Your help would be appreciated!
    Regards,
    Skander

    Dear Poster
    Your thread has had no response since it's creation over
    2 weeks ago, therefore, I recommend that you either:
    - Rephrase the question.
    - Provide additional Information to prompt a response.
    - Close the thread if the answer is already known.
    Thank you for your compliance in this regard.
    Jason Boggans
    SAP SRM SDN Moderator

  • How to Prevent/Control doing MIGO twice for the same material

    Dear
    The stores clerk by mistake has done MIGO twice for the same material.  Is there any way to prevent/check the same in standard SAP?  Vendor does not send the invoice/delivery challan to stores directly.  Invoice is sent to Finance Department. 
    Regards

    It is very unlikely that you could spec an ABAP solution to this problem.
    You may be able to spec an exit that would prevent GR being carried out for a PO Item twice on the same day.  But that is not infallible, as there may be valid circumstances when you would need to carry out two GR's for a PO item on the same day.  A fix for a small problem that creates a large one is not a good fix.
    You also need to ask how big this problem really is - if a user duplicates a goods receipt every once in a long while then you probably do not have a serious problem.
    Rather than look at a system fix for the error, I would suggest that you look at what you can do to improve the physical process.

  • Sales Deal with two different validation dates for the same material

    Hi SAPers,
    I am trying to create a u201CSales Dealu201D VB31, for the same material/condition, but with two different validation dates. After the creation of the first record, I select u201CNew conditionu201D button, but the system give me the message VK104, u201Cthe condition is being processed in the current session.u201D.
    How can I solve this issue?
    Thanks in advance.
    Pedro

    We can't have multiple records for the same condition and key values valid on the same date. The condition end date is part of the primary key in the database table. The date ranges between the records cannot overlap. When you create a new record, usually the end date is set to 12/31/9999 by default. If you need to have this deal to end on a different date and a new deal to start afterwards, then first you need to change 12/31/9999 to a different date.
    Also usually I try to exit the screen between the transactions.

  • In MIGO two seperate entry for the same Material in Accounting Document

    Dear Expert,
    Hi
    Business is doing stock transfer transaction. Here with reference to stock transfer PO when business is doing Goods Issue.
    here there is two stock transfer PO.  in one PO there is two line items for the same material. in the second PO again same material with two line items.
    but at the tme of Goods issue it is showing two seperate line for same material stock account credit in accounting document. but in the other Goods issue with reference to second PO it is showing only one line for inventory account credit in the accounting dcoument.
    so pl. guide me on this.
    thanks
    H shah

    Hi,
    Step 1 : First we create the Stock transfer PO.
    Step 2 : Goods issue with ref to above stock transfer PO ( Movement type 351) - MIGO
    Step 3 : Goods Receipt with ref to above stock transfer PO ( Movement Type 101 )- MIGO
    Thanks
    H shah

  • Different countries of origin for the same material

    Hi All,
    I need to maintain two different countries of origin for the same material, is this possible?
    I have materials that are sold to customer in Europe and also in the US, but according to EU laws the country of origin is X and according to NAFTA laws the country of origin is Y.
    I therefore need to be able to maintain the data according to the receiving country.
    Is there a possibility to do this in SAP?
    Thanks,
    Sivan

    Thank you for the answer.
    The problem is not that I have a different vendor, but that I have a different customer. The laws regarding how to define the country of origin for the EU are a bit different from the laws regarding the US. Therefore the same material, purchased from the same vendor can have a different country of origin when we sell it to a customer in the US from the country of origin when we sell it to a customer in the EU.
    I therefore need to maintain the country of origin according to the teratory in which the customer resides.
    Do you know of a solution for this?
    Thanks,
    Sivan

  • Multiple DEVL_PROJECT_ID for the same model in CZ_DEVL_PROJECTS Table.

    Hi,
    Did anyone came across this issue!! I am triggering the config engine from back and and trying to pick up a model but it has multiple devl_project_id's. :(
    I could see multiple DEVL_PROJECT_ID for the same model in CZ_DEVL_PROJECTS Table. Apart from DEVL_PROJECT_ID and created_by_date every thing looks the same.
    Below are the 2 records the data from the table
    select * from CZ.CZ_DEVL_PROJECTS where product_key = '122:17056' and DEVL_PROJECT_ID in (12943,15321)
    DEVL_PROJECT_ID     NAME     ORIG_SYS_REF     CREATION_DATE     LAST_UPDATE_DATE     PERSISTENT_PROJECT_ID     MODEL_TYPE
    12943     ASI XXX MODEL(122 17056)     OPTIONAL:122:17056     12/18/2012 10:01     12/18/2012 10:01     11100     A
    PRODUCT_KEY     ORGANIZATION_ID     INVENTORY_ITEM_ID     BOM_CAPTION_RULE_ID     NONBOM_CAPTION_RULE_ID
    122:17056     122     17056     802     801
    15321     ASI XXX MODEL(122 17056)     OPTIONAL:122:17056     12/26/2012 23:10     12/26/2012 23:10     11100     A     
    122:17056     122     17056     802     801
    Thanks in advance,
    -vijay

    It can be possible to have multiple devl_project_id for the same model in cz_devl_projects Table.
    Case -1 : When you delete the existing model and re-import again.
    case 2:
    When you publish the model locally, it will create the same copy of the record with different devl_project_id, creation_date, last update_date etc..\
    You can see that for published records the last_updat_login, checkout_user will be null and for the original model, last_update_login,checkout_user (if model is locked) will not be null.
    -Murali
    Edited by: 907569 on Jan 8, 2013 10:55 AM

  • Exit for CO02-FOR QUANTITY FIELD FOR THE LIST OF LINE ITEMS

    Hi,
    Can anyone just let me know the user exit to code the authority check for the quantity field in CO02 for the screen SAPLCOMK.
    The quantity assigned for the list of items should not be changed by the user.
    For this in which exit should i go and write the code?
    Regards,
    P.S.Chitra

    CCOWB001  Customer exit for modifying menu entries
    COIB0001  Customer Exit for As-Built Assignment Tool
    COZF0001  Change purchase req. for externally processed operation
    COZF0002  Change purchase req. for externally procured component
    PPCO0001  Application development: PP orders
    PPCO0002  Check exit for setting delete mark / deletion indicator
    PPCO0003  Check exit for order changes from sales order
    PPCO0004  Sort and processing exit: Mass processing orders
    PPCO0005  Storage location/backflushing when order is created
    PPCO0006  Enhancement to specify defaults for fields in order header
    PPCO0007  Exit when saving production order
    PPCO0008  Enhancement in the adding and changing of components
    PPCO0009  Enhancement in goods movements for prod. process order
    PPCO0010  Enhancement in make-to-order production - Unit of measure
    PPCO0012  Production Order: Display/Change Order Header Data
    PPCO0013  Change priorities of selection crit. for batch determinati
    PPCO0015  Additional check for document links from BOMs
    PPCO0016  Additional check for document links from master data
    PPCO0017  Additional check for online processing of document links
    PPCO0018  Check for changes to production order header
    PPCO0019  Checks for changes to order operations
    PPCO0021  Release Control for Automatic Batch Determination
    PPCO0022  Determination of Production Memo
    PPCO0023  Checks Changes to Order Components
    STATTEXT  Modification exit for formatting status text lines
    hi check your field where it is present
    if it header then check with the description header most probably the first must be your exit

  • Spool no. not generating for the same shipement number

    Hi,
    I am working on shipment related forms. When i give the print of one shipment no., all the forms are going to one spool number. But my problem is when i take the same shipment number from second time onwards then all the forms are getting appended to the same spool number instead of creating a new spool number.
    For example my shipment no.:- 1277489 contains 8 pages, when i take the same shipment no. for second time all the 8 pages getting appended and total 16 pages are going to that same spoll no. For third time 24 pages and 4th time 32 pages and so on... in the same spool request.
    I have debugged the driver program, but i din't get any solution for that. So can any one suggest me of how to resolve this issue.
    Thanks & Regards,
    Ramana

    Hi,
    After selecting the print option, the print pop window appears. In that select the option New Spool Request.
    Then give the print, it will come on new page.
    You can also pass this option in the print program also. Pass TDNEWID = 'X' in parameter OUTPUT_OPTIONS.
    Regards,
    Vinod

  • Multiple BOM Explosion in MD04 for the same material

    Dear PP Gurus,
    Scenario is make to order. BOM is created for production usage (1) & sales usage (5) for a Header material. Routing also exists for the same.
    Once i run MRP at plant level or material level after creating sales order , BOM is expoded multiple times i.e. 3- 4 times but proposals ( planned orders) are created as per requirements.But BOM explosion when we click on show overview tree is happening multiple times which should not happen.
    Our client business is not getting hampered by this but still he doesnt want explosion multiple times and to be precise it should not happen.
    Can anyone pls. throw some light on this .
    Thanks in advance . Answers will be rewarded for sure.
    regards,
    Nagraj Vasmate

    Hello Nagraj,
    In MD04, On overview tree, it explodes all possible BOM for the header material.
    System will explode all valid BOM's with usage 5 and 1 for that specific material.
    Reg
    Samson

  • Free quantity receive for the same Item during MIGO

    Hi All,
    I want to receive full Quantity but want to pay for 90% & the rest 10% is free.
    Ex- I want to receive Material X of 54 kg per Bag at a price Rs.100 per kg.
          But Chargeable quantity is only 50 kg per bag.
          Want to Receive 10 Bags of 540 KG but want to pay for only 500 Kg at a price of Rs 100 per Kg.
           My PO is showing the amount for 500 kg but after GR the amount in MIRO is showing for 540 KG
           Like for the above case My PO is Showing Rs. 50000 But after full GR in MIRO it shows Rs. 54000.
           Can any body tell me how should I pay for the Chargeable quantity only.

    Hi,
    You have to make use of free goods concept before you create a PO.
    Or create the quantity you got as free using mvt type 511 seperately in MIGO as to avoid the amount taken for IR.
    Regards,
    Deepak

  • Auto GR for the same material and with different routings to diff stor loc

    Hi All,
              I have a semi finished material having 2 different routings line 1 and line 2 and with respective 2 different storage locations but need to have Auto GR.

    I'm not sure what you are asking; to cause an operation to do auto GR, you need to choose the right operation control key. The auto GR is controlled via the operation control key.
    Then for the Slocs; on the production version (MRP 4 view) you have a field "receiving location". Maintain for each of the two versions the right location.
    Next, create a new production order, and choose one of the production versions. Release, and do CO11N for the operation with the auto GR control key. See that it is received in the desired Sloc..

  • Extractor 0CO_PC_PCP_03: diferent costing runs for the same material

    Hi, experts.
    We are extracting data with 0CO_PC_PCP_03 extractor, but some materials do not return any record.
    If we use CO standard transactions, we can get the values for all materials, but with the extractor just few materials are returned.
    We are filtering the extractor with the costing run name and costing run date, but some materials are not extracted.
    This is occurring for a specific month only. We have extracted data for other months / costing runs and the same materials appears in CO transaction and in extractor result. The different thing with this problematic month is that there are other costing runs of the same type (costing variant), for a higher date.
    It seems like the extractor just can extract the last costing run for a material / month. Any idea?
    Thanks,
    Henrique Teodoro

    Hello,
    I have an update in my findings. Few days ago, R/3 user ran a new costing run for a set of materials, using the same costing variant / costing version used one year ago. And now, when I extract the costing run created one year ago, materials present in recently run set don´t appear anymore. I ran this same costing run weeks ago and the material are ok. After the new costing run with the same costing variant / costing version, they are gone from extraction.
    Seems like this extraction just can return the last costing variant / costing version for each material. Or maybe the table key that stores this data are costing variant / costing version, instead of costing run / costing run date.
    Anybody have any knowledge or experience on this?
    Thanks,
    Henrique

  • Consignment vs owned inventory for the same material/inventory (cycle count)

    Hi All,
    I am looking at ways within SAP that I could differentiate materials/inventory that are consignment and owned inventory...
    We have a department that are experiencing difficulties performing cylce counts as they both owned and consignments parts and materials and it is currently done manually.
    Is there a way for us to generate a single inventory that includes both owned and consignment in the same report?
    Any help would be great!
    Cheers!
    Wendell

    Hi Wendell,
    If you have batch management and WM, this should not be a problem.. In this case, you should be able to identify where each batch is located and if the batch is consignment or own.
    If not, then execpt you separate the inventory in different storage locations, the inventory could be mixed.
    Anyway, I recommend you to move this thread to SAP MM:
    SAP ERP - Logistics Materials Management (SAP MM)
    Kind Regards,
    Mariano

Maybe you are looking for

  • Which is better:  extractValue or existsNode for Performance

    Hi, We have XMLDB Table with only 1 Column (XMLType) created using below: create table TNMAB_AGREEMENT_XML( AGREEMENT_XML XMLType )      XMLTYPE COLUMN AGREEMENT_XML XMLSCHEMA "ABQuote_V1.xsd" ELEMENT "Quote"           VARRAY AGREEMENT_XML.XMLDATA."S

  • Would it make a difference in performance with 8GB

    I would like to know if I opt to upgrade the memory from 4GB to 8GB in 13-inch: 2.4GHz Mac Book Pro, make a noticeable difference in it's performance? Regards

  • Can't import pictures from iphone 5

    I can't import pictures from my iphone 5 even though they are stored on my computer. I get the message "nothing has been imported. The file(s) selected to import did not contain any supported file types, or the files are already in this catalog."  I'

  • Systinet UDDI - SOA SUITE 11G (Dynamic SOAP end point lookup Issues)

    Hi, We are using Systinet as our UDDI product and trying to use UDDI lookup in our BPEL process as well. I have completed the below tasks 1) Configured the Systinet UDDI Inquiry URL and the development soap endpoint in the SOA Infrastructure Common p

  • IMAP sync issues

    Hi, I am having issues syncing a new Z10 over IMAP to SmarterMail mail server.  I posted on their forums and their responce was quite blunt: http://forums.smartertools.com/showthread.php/3847​7-Blackberry-Z10-IMAP Anyone else seeing this issue? Thank