Additional code for PO(purchase order) BDC

Hi All,
I wrote a BDC for uploading Open PO(purchase order). I did it using recording. But when coming to upload it can take only one line item for material. In a PO we can include any number of materials. So inorder to get such upload functionality where do we need to add the code and how to? The coding is stated as follows....The bold text is the line item data to upload in which multiple materials need to be uploaded.
TYPE-POOLS: TRUXS.
DATA: IT_RAW TYPE truxs_t_text_data.
TYPES: begin of SPORD,
BSART(004),
SUPERFIELD(030),
BEDAT(010),
EKORG(004),
EKGRP(003),
BUKRS(004),
EBELP_01(005),
KNTTP_01(001),
EMATN_01(018),
MENGE_01(017),
MEINS_01(003),
EEIND_01(010),
NETPR_01(014),
WAERS(004),
PEINH_01(006),
NAME1_01(030),
SAKTO(010),
KOSTL(010),
REPOS(001),
MWSKZ(002),
WEBRE(001),
      end of SPORD.
DATA: T_PORD TYPE TABLE OF SPORD,
      PORD TYPE SPORD.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETERS: FILENAME TYPE RLGRAP-FILENAME.
SELECTION-SCREEN END OF BLOCK B1.
include ZBdcrecx1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR FILENAME.
  CALL FUNCTION 'F4_FILENAME'
    EXPORTING
      FIELD_NAME = 'FILENAME'
    IMPORTING
      FILE_NAME  = FILENAME.
start-of-selection.
PERFORM GET_DATA.
perform open_group.
LOOP AT T_PORD INTO PORD.
perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
perform bdc_field       using 'BDC_OKCODE'
                              '=MEDOCTYPE'.
perform bdc_field       using 'BDC_CURSOR'
                              'MEPO_TOPLINE-BSART'.
perform bdc_field       using 'MEPO_TOPLINE-BSART'
                              PORD-BSART.
perform bdc_field       using 'MEPO_TOPLINE-BEDAT'
                              PORD-BEDAT.
perform bdc_field       using 'DYN_6000-LIST'
                              '   1'.
perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
perform bdc_field       using 'BDC_OKCODE'
                              '=MEV4001BUTTON'.
perform bdc_field       using 'BDC_CURSOR'
                              'MEPO_TOPLINE-SUPERFIELD'.
perform bdc_field       using 'MEPO_TOPLINE-BSART'
                              PORD-BSART.
perform bdc_field       using 'MEPO_TOPLINE-SUPERFIELD'
                              PORD-SUPERFIELD.
perform bdc_field       using 'MEPO_TOPLINE-BEDAT'
                              PORD-BEDAT.
perform bdc_field       using 'MEPO1222-EKORG'
                              PORD-EKORG.
perform bdc_field       using 'MEPO1222-EKGRP'
                              PORD-EKGRP.
perform bdc_field       using 'MEPO1222-BUKRS'
                              PORD-BUKRS.
perform bdc_field       using 'DYN_6000-LIST'
                              '   1'.
perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
perform bdc_field       using 'BDC_OKCODE'
                              '/00'.
perform bdc_field       using 'MEPO_TOPLINE-BSART'
                              PORD-BSART.
perform bdc_field       using 'MEPO_TOPLINE-SUPERFIELD'
                              PORD-SUPERFIELD.
perform bdc_field       using 'MEPO_TOPLINE-BEDAT'
                              PORD-BEDAT.
perform bdc_field       using 'MEPO1222-EKORG'
                              PORD-EKORG.
perform bdc_field       using 'MEPO1222-EKGRP'
                              PORD-EKGRP.
perform bdc_field       using 'MEPO1222-BUKRS'
                              PORD-BUKRS.
perform bdc_field       using 'BDC_CURSOR'
                              'MEPO1211-NAME1(01)'.
perform bdc_field       using 'MEPO1211-EBELP(01)'
                              PORD-EBELP_01.
perform bdc_field       using 'MEPO1211-KNTTP(01)'
                              PORD-KNTTP_01.
perform bdc_field       using 'MEPO1211-EMATN(01)'
                              PORD-EMATN_01.
perform bdc_field       using 'MEPO1211-MENGE(01)'
                              PORD-MENGE_01.
perform bdc_field       using 'MEPO1211-MEINS(01)'
                              PORD-MEINS_01.
perform bdc_field       using 'MEPO1211-EEIND(01)'
                              PORD-EEIND_01.
perform bdc_field       using 'MEPO1211-NETPR(01)'
                              PORD-NETPR_01.
*perform bdc_field       using 'MEPO1211-WAERS(01)'
                             PORD-WAERS.*
perform bdc_field       using 'MEPO1211-PEINH(01)'
                              PORD-PEINH_01.
perform bdc_field       using 'MEPO1211-NAME1(01)'
                              PORD-NAME1_01.perform bdc_field       using 'DYN_6000-LIST'
                              '   1'.
perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
perform bdc_field       using 'MEPO_TOPLINE-BSART'
                              PORD-BSART.
perform bdc_field       using 'MEPO_TOPLINE-SUPERFIELD'
                              PORD-SUPERFIELD.
perform bdc_field       using 'MEPO_TOPLINE-BEDAT'
                              PORD-BEDAT.
perform bdc_field       using 'BDC_CURSOR'
                              'MEPO1211-EEIND(01)'.
perform bdc_field       using 'DYN_6000-LIST'
                              '   1'.
perform bdc_field       using 'MEPO1317-REPOS'
                              PORD-REPOS.
perform bdc_field       using 'MEPO1317-MWSKZ'
                              PORD-MWSKZ.
perform bdc_field       using 'MEPO1317-WEBRE'
                              PORD-WEBRE.
perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
perform bdc_field       using 'BDC_OKCODE'
                              '=TABIDT7'.
perform bdc_field       using 'BDC_OKCODE'
                              '=MESAVE'.
perform bdc_field       using 'MEPO_TOPLINE-BSART'
                              PORD-BSART.
perform bdc_field       using 'MEPO_TOPLINE-SUPERFIELD'
                              PORD-SUPERFIELD.
perform bdc_field       using 'MEPO_TOPLINE-BEDAT'
                              PORD-BEDAT.
perform bdc_field       using 'DYN_6000-LIST'
                              '   1'.
perform bdc_field       using 'MEACCT1200-KNTTP'
                              PORD-KNTTP_01.
perform bdc_field       using 'MEACCT1100-SAKTO'
                              PORD-SAKTO.
perform bdc_field       using 'BDC_CURSOR'
                              'COBL-KOSTL'.
perform bdc_field       using 'COBL-KOSTL'
                              PORD-KOSTL.
perform bdc_dynpro      using 'SAPLSPO2' '0101'.
perform bdc_field       using 'BDC_OKCODE'
                              '=OPT1'.
perform bdc_transaction using 'ME21N'.
ENDLOOP.
perform close_group.
*&      Form  GET_DATA
      text
-->  p1        text
<--  p2        text
FORM GET_DATA .
CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
  EXPORTING
   I_LINE_HEADER              = 'X'
    I_TAB_RAW_DATA             = IT_RAW
    I_FILENAME                 = FILENAME
  TABLES
    I_TAB_CONVERTED_DATA       = T_PORD.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM.                    " GET_DATA
regards
PSNG
Edited by: PSNG on Jun 11, 2008 3:28 PM

ME_PROCESS_PO_CUST
use above BADI for ME22N/ME21N,often we use method PROCESS_HEADER
PROCESS_ITEM our most of the requirement meet by these methods only,check once if your requirement does meets with these two methods?
if not than you may implement some more method which are in ME_PROCESS_PO_CUST, for more help you may read documentation,there is well enough documentation already there for each method.
and for ME22/ME21 you may use
ME_PURCHDOC_POSTED
and method POSTED.

Similar Messages

  • Tax Code for Import Purchase Order

    Hi Experts,
    I have searched for this content but didn't match my requirements.
    My client has asked to create new tax code which they will be using in their Import Purchase order.
    Attached along the client's requirement.I haven't created tax code of this nature.
    Please advise which condition types should be used to create this tax code.
    Kind regards,
    Pradeesh.P

    Your client requirement is correct in the sense , they need to new  excise rates for one combination.
    import procurement works differently.
    We use dummy tax code here and actual excises will be shown with pricining schema .
    For all import procurement , one need to use a separate pricing Schema and all tax values are entired manually while creating PO or cdn records are maintained.
    The excises are captured as CVD - Countervailing duties and separate registers are maintained in configuration.
    please note - Most of the cases there will be 3 pricing schema - domestic, import ,STO
    the import process is also slightly different.
    Me21n,MIRO(called commercial invoice @ for customs clearing),J1iex(cenvat capture with addtl-ref-commercial invoice),MIGO,CEnvat post ( cenvat post with addtl-ref-commercial invoice)
    a particulat item will contain these cdn details
    Basic Price
    Landing changes
    Insurance
    Accessible value
    Basic Customs Duty
    CVD
    ECESS
    SHE CESS
    Coustom Ecess
    Coustom SHECess
    Additional Duty
    regards
    manu

  • Unit Price Format in XSL-FO Code for Standard Purchase Order Printing

    Hi All,
    As I am new to XSL-FO, so i am not aware of doing XML,XSL-FO changes. I have an issue with the xsl-fo for standard po layout. My report layout gives ##,## instead of ##.## as my Unit Price. i.e. in the report for POs, it is showing unit price in the format as #,## eg: 0,32 or u can say like 1,70 instead it should show #.## something like 0.32 and 1.70 as my unit price. The piece of code related to unit price formatting in report as follows:
    <xsl:choose>
    <xsl:when test="(UNIT_PRICE,1,1 > 1) and (substring-before(UNIT_PRICE,',') > 0)">
    <fo:table-cell xsl:use-decimal-format="euro2"> <fo:table-cell xsl:use-attribute-sets="table.cell5"> <fo:block xsl:use-attribute-sets="form_data1">
    <xsl:value-of select="format-number(substring-before(UNIT_PRICE,','),'#.###','euro2')"/>,<xsl:if test="(substring(substring-after(UNIT_PRICE,','),3,1)) > 4"><xsl:value-of select="(substring(substring-after(UNIT_PRICE,','),1,5))"/></xsl:if>
    <xsl:if test="(substring(substring-after(UNIT_PRICE,','),3,1)) =''"><xsl:value-of select="(substring(substring-after(UNIT_PRICE,','),1,5))"/></xsl:if>
    <xsl:if test="(substring(substring-after(UNIT_PRICE,','),3,1)) = 1"><xsl:value-of select="(substring(substring-after(UNIT_PRICE,','),1,5))"/></xsl:if>
    <xsl:if test="(substring(substring-after(UNIT_PRICE,','),3,1)) = 2"><xsl:value-of select="(substring(substring-after(UNIT_PRICE,','),1,5))"/></xsl:if>
    <xsl:if test="(substring(substring-after(UNIT_PRICE,','),3,1)) = 3"><xsl:value-of select="(substring(substring-after(UNIT_PRICE,','),1,5))"/></xsl:if>
    <xsl:if test="(substring(substring-after(UNIT_PRICE,','),3,1)) = 4"><xsl:value-of select="(substring(substring-after(UNIT_PRICE,','),1,5))"/></xsl:if>
    <xsl:if test="(substring(substring-after(UNIT_PRICE,','),2,1)) = ''"><xsl:value-of select="((substring(substring-after(UNIT_PRICE,','),1,1))-(substring(substring-after(UNIT_PRICE,','),1,1)))"/></xsl:if>
              </fo:block>
         </fo:table-cell>
    </fo:table-cell>
    </xsl:when>
    <xsl:when test="(substring(UNIT_PRICE,1,1)=',')">
         <fo:table-cell xsl:use-attribute-sets="table.cell5"> <fo:block xsl:use-attribute-sets="form_data1">
         <xsl:value-of select="UNIT_PRICE"/>
         </fo:block>
         </fo:table-cell>
    </xsl:when>
    <xsl:when test="(UNIT_PRICE,1,1 > 1) and (substring-after(UNIT_PRICE,'.') > 0)">
    <fo:table-cell xsl:use-decimal-format="euro2"> <fo:table-cell xsl:use-attribute-sets="table.cell5"> <fo:block xsl:use-attribute-sets="form_data1">
         <xsl:value-of select="format-number(substring-before(UNIT_PRICE,'.'),'#.###','euro2')"/>,<xsl:if test="(substring(substring-after(UNIT_PRICE,'.'),3,1)) > 4"><xsl:value-of select="(substring(substring-after(UNIT_PRICE,'.'),1,5))"/></xsl:if>
    <xsl:if test="(substring(substring-after(UNIT_PRICE,'.'),3,1)) =''"><xsl:value-of select="(substring(substring-after(UNIT_PRICE,'.'),1,5))"/></xsl:if>
    <xsl:if test="(substring(substring-after(UNIT_PRICE,'.'),3,1)) = 1"><xsl:value-of select="(substring(substring-after(UNIT_PRICE,'.'),1,5))"/></xsl:if>
    <xsl:if test="(substring(substring-after(UNIT_PRICE,'.'),3,1)) = 2"><xsl:value-of select="(substring(substring-after(UNIT_PRICE,'.'),1,5))"/></xsl:if>
    <xsl:if test="(substring(substring-after(UNIT_PRICE,'.'),3,1)) = 3"><xsl:value-of select="(substring(substring-after(UNIT_PRICE,'.'),1,5))"/></xsl:if>
    <xsl:if test="(substring(substring-after(UNIT_PRICE,'.'),3,1)) = 4"><xsl:value-of select="(substring(substring-after(UNIT_PRICE,'.'),1,5))"/></xsl:if>
    <xsl:if test="(substring(substring-after(UNIT_PRICE,'.'),2,1)) = ''"><xsl:value-of select="((substring(substring-after(UNIT_PRICE,'.'),1,1))-(substring(substring-after(UNIT_PRICE,'.'),1,1)))"/></xsl:if>
         </fo:block>
         </fo:table-cell>
    </fo:table-cell>
    </xsl:when>
    <xsl:when test="(UNIT_PRICE,1,1 > 1 ) and (substring-after(UNIT_PRICE,',') ='') ">
    <fo:table-cell xsl:use-decimal-format="euro"> <fo:table-cell xsl:use-attribute-sets="table.cell5"> <fo:block xsl:use-attribute-sets="form_data1">
    <xsl:value-of select="format-number(UNIT_PRICE,'#,###.00','euro')"/>
              </fo:block>
         </fo:table-cell>
    </fo:table-cell>
    </xsl:when>
    </xsl:choose>
    PS: My decimal formats for euro and euro2 are:
    <xsl:decimal-format name="euro" decimal-separator="," grouping-separator="."/>
    <xsl:decimal-format name="euro2" grouping-separator="." NaN="0"/>
    Any help or reply regarding this issue will be highly appreciated.
    Regards,
    Sumir

    Hi Michele:
    I can check out for you how to print page number in XSL-FO (There is an O'Reilly) book, but I think I help you better by recommending a different strategy - Don't write XSL-FO stylesheets. While Purchasing does not support RTF templates you can still write RTF templates and convert them to FO using the XML Publisher Template Builder for Word.
    Download the matching Template Builder for Word (5.0) or XML Publisher Desktop 5.5 (includes the Template Builder) patch and then Create your template as an RTF template.
    You can then EXPORT the template as XSL-FO stylesheet and upload as to Purchasing AS LONG AS THE VERSION OF THE DESKTOP and E-Businees Suite XML Publisher MATCH.
    If you still want to write XSL stylesheet, you can just use the Template Builder to generate you the code and paste the code (e.g. for page numbers) into your stylesheet.
    By the way - Purchasing will support RTF templates in future versions...
    Hope that helps,
    Klaus

  • Multiple Vendors for one Purchase order in delta load

    Hello,
    While Extracing data from 2LIS_02_SCL we are getting 2 vendors for a singe purchase order , as we know that for a purchase order we cannot have multiple vendors.
    When i checked data in deta queue (RSA7) we are able to see only single vendor for 1PO, but when we load to bw and checked data in PSA we are getting 2 different vendors for same PO.
    Regards,
    Vasu.

    Hello,
    As per my understanding you are getting data upto delat queue (RSA7) Correctly and you are getting incorrect data at PSA level In bw.
    i think you must have some customer exit in ECC for the datsource 2lis_02_scl. so i would say that there may be some problem in the code since the customer exit code will get triggered after RSA7 and before PSA in BW..
    Additionally you can cross check in RSA3 with update mode as 'D' which gives  delta before loading to BW.
    Debugging option :
    Load data to BW and pick the PO having multiple vendors and in ECC dubug using RSA3 with update mode as "R" inorder to fing the problem in customer exit code.
    Hope this helps you..
    Regards,
    Srikanth.

  • Problem for Goods Receipt for Subcontracting Purchase Order

    Dear all,
    Presently, we are using SAP version 4.6C and we need to introduce GR for
    Subcontracting Purchase Order. We have developed a ABAP program to handle
    subcon Goods Receipt by uploading flat-files from our subcontractor. The
    scenario is as follows :
    Goods Receipt for Subcontracting Purchase Order
    1. In the ABAP program, function BAPI_GOODSMVT_CREATE will be used for goods
    movement.
    2. Data provided to the function are as follows :
    - Posting date
    - Document date
    - Material number
    - Plant
    - Storage location
    - Batch
    - Movement type (101)
    - Quantity
    - Purchase order number
    - Purchase order item
    - Movement indicator (B - Goods receipt for purchase order)
    3. The function will do data verification and automatically determine GI
    item for subcon stock:
    - Movement type (543)
    - Special stock (O - parts prov. vendor)
    - Material
    - Quantity
    - Plant
    Our problem is that :
    Only the GR item in the interface is to be transferred and the GI item is
    determined by the system. So, the quantity for subcon stock cannot be
    changed using this BAPI. Then the system will continue processing the goods
    receipt and create material document.
    Manually, by using transaction code MIGO, the user can display the subcon
    stock data and then change the quantity.
    By using transaction code MB01, after the user fills in all the GR fields,
    the system comes to line item 002 (subcon stock data) and then quantity can
    be changed.
    As per user requirement, quantity for GI item must be same with the quantity
    that has been transferred to subcon vendor in Delivery for Subcon
    (transaction code VL02N).
    We cannot achieve this requirement by using the BAPI mentioned above. Would
    appreciate any valuable help from anyone who is able to help us on this
    matter. Are there any other BAPI's that can help us to achieve the same
    result ?
    Thank you in advance and best regards.

    As far as i understood the problem I suggest u to create the
    BDC according to user actions that are performed in he manual
    operation.
    I can't say that the BAPI performs the exac solution what you want.
    I have done some BDC work using MB01 and suggest you to be careful
    and try to keep the complete in the logic as some chages in rows in BDC will
    change the complete scenario.And throw correct quantity val in correct
    material
    row.
    This methodology will help u even in mass uploads.
    Or in case of automation u can perform the call transaction BDC in
    background mode.
    so As per my understanding bdc program is the solution. pls try and let me
    know.

  • Data Migration for Open Purchase Order

    Hi, All,
    Is there anyone know how to Count the volume for Open Purchase Order. What's the normal strategy for the Data Migration and Cut-over stage?
    My client want to know how many Open Purchase Order in the legacy system and then determine manual or automatic data migration. If manual, how to do? If automatic, how to do? Because all materials and vendors, plants are different number. How to track? How to find out to match between new and old?
    Thank you very much

    JC,
    Sounds a bit early to be making decisions about the realization phase.  It doesn't sound like you have finished the Blueprinting phase yet, much less the testing phase.
    Anyhow, in my experience I typically use LSMW (Legacy system migration workbench) to load MM master data (material masters), Inventory (WIP, RM, FG, etc) Purchasing Master data (Vendors, Purchase Info Records, Source Lists, Quota Arrangements), and Purchasing transactional documents (POs, PurReqs, Scheduling Agreements, etc).  Depending on the complexity and volume of data, it  may be necessary to write custom programs to load the data.  You will find this out during your requirements gathering.
    It is uncommon but possible to load all of these data manually.  I have never run across a client that wants to pay a consultant's hourly rate to sit at a terminal to peck away loading master data, so if the client intends to have his own users enter the data manually, the project manager should make provision that there will be qualified TRAINED client employees available for this data entry.  I did help with a portion of a conversion once manually; of Sales Credits, but there were only about 30 SD docs to load.   I did this the evening before go-live day, while I was waiting for some of my LSMW projects to complete in the background.
    A good opportunity to 'practice' your data loads is right after you have completed your development and customization, and you have gotten the approval from the client to proceed from the pilot build to the full test environment.  Once you have moved your workbench and customization into the client's test environment, but before integration testing, you can mass load all, or a substantial portion of your conversion data into the qual system.  You can treat it like a dry run for go-live, and fine tune your processes, as well as your LSMW projects.
    Yes, it is good practice to generate comparisons between legacy and SAP even if the client doesn't ask for it. For Purchase orders on the SAP side, you could use any of the standard SAP Purchasing reports, such as ME2W, ME2M, ME2C, ME2L, ME2N.  If these reports do not meet the requirements of the client, you could write a query to display the loaded data, or have an ABAPer write a custom report.
    You didn't ask, but you should also do comparisons of ALL loaded data - including master data.
    It sounds like you are implying that the client wants YOU to extract the legacy data.  For an SAP consultant, this is not very realistic (unless the legacy system is another SAP system).  Most of us do not understand the workings of the myriad legacy systems.  The client is usually expected to produce one or more legacy system technical experts for you to liase with.  You normally negotiate with the technical expert about every facet of of the data migration.  In addition, you will liase with business users, who will help you and the implementation team to logically validate that the final solution (turnkey SAP production system, fully loaded with data) will meet the client's business needs.
    Finally, you mentioned how do you track the mapping of master data between legacy and SAP.  There are many ways to do this.  I normally try to get the legacy person do the conversion on his end, eg, when he gives you the load file, you would like to have already translated the master data and inserted the SAP relevant values into the file.  If this is not possible, I usually use MS Access databases to maintain a master map, and I perform the mapping on a PC.  If your data package is small, you can probably get by using MS Excel or similar.
    Good Luck,
    DB49

  • How to set up automatic payment for the purchase order

    Hi, All,
    I have one question how to set up automatically payment for the Rent Office purchase Order?
    There is the requirement from the client. They want to create one kind of purchase order for the Office Rent, then pay the fees in the certain time of every month to the vendor for the rent fees without any invoice. Whatu2019s the normal solution for this kind of purchase order? Is it ERS? Or something else?
    Please give me the details and business flow. Also please tell me how to setup in the SAP and T-code.
    Thanks in advance

    Either you can set up ERS or you can pay directly from the FI side.
    Prerequisites
    Evaluated receipt settlement must be flagged in the purchase order item.
    The vendor must be flagged as being subject to ERS in the vendor master record.
    The goods receipt must refer to a purchase order.
    Goods-receipt-based Invoice Verification must be defined for the purchase order item.
    A tax code must have been maintained in the purchase order item.
    The order price of the materials may not be an estimated price.
    If you flag a vendor as being subject to ERS, the system sets the ERS indicator as a default in each item when you create a purchase order for the vendor. You can prevent this happening for certain vendors by flagging the info record for the material and the vendor as not being subject to ERS.
    In Purchasing, you can delete the default ERS indicator in a purchase order item.
    Choose Logistics Invoice Verification ® Automatic Settlement ® Evaluated Receipt Settlement (ERS).
    The selection screen appears.
    You can use the following criteria to narrow down selection of the transactions to be settled:
    Company code
    Plant
    Goods receipt posting date
    Goods receipt document
    Fiscal year of the goods receipt
    Vendor
    Purchase order and order item
    You can define the selection criteria for the invoice documents by:
    Delivery
    Purchase order
    Purchase order item
    Goods receipt document
    Credit memo
    Invoice
    Currency
    Choose  Execute.
    The system issues a log for Evaluated Receipt Settlement, which displays the following:
    Settled
    In line with your selection criteria, the system displays all the order items that were settled (or if you are working in test mode, which would have been settled).
    Could not be settled
    In line with your selection criteria, the system displays all order items for which ERS is defined but could not be settled. It also lists the reasons.
    If the system reports being unable to invoice a transaction, you should exclude the transaction from ERS to avoid it being included in the log the next time ERS is run.
    Select the item and choose Exclude from ERS.
    The system also generates and possibly sends a message to inform the vendor(s) about the transaction settled, depending on the settings in Customizing.
    You can display the following environment information for the order items selected. To do this, choose Goto ®:
    Display purchase order
    Display invoice
    Display material document
    Display long text

  • Report for released purchase order

    Hai guru's
    this is second time but i did't get any good replay please consider this, i want any standard report for released purchase order,means(i released two backdated po today next day i verify the report ME2n,those po are not display, the system take only document date not released date, now i am using CDHDR through this i got the report. but it is big process, so once check this and send your valuable solution.
    Prasad

    Hi Krishna,
    You could use Me2N with the dynamic selection coupled with normal selection screen.
    In Dynamic selection(3rd icon in screen).....you can select for which company code, release indicator as released....and save it as default variant.
    hope this should solve your query
    Sk.

  • Unable to preview Contract Terms for Standard Purchase Order

    Unable to preview View Contract Terms for Standard Purchase Order,displays error
    We have defined the same contract terms and Document type layouts to documents Contract Purchase Order and Standard Purchase Order.
    Created a Contract PO,Attached a template able to preview the contract template in PDF successfully
    Created a Standard PO,Attached a template not able to preview the contract template in PDF
    Displays the foll error
    Problem: The system could not generate the PDF document.
    Reason: The system detected an error in the following code/object.
    Code: XML
    Object: PO
    Action: Please contact the system administrator and try again
    ### Steps to Reproduce Problem ###
    Steups
    Created a custom XSL-FO template for Contract template and defined it for Standard PO and Contracts PO.
    Steps to Reproduce
    1.Create a PO,give any category of 100 Qty
    2.Click Terms and CLick Author Contract Terms\
    3.Select the custom Template ,Click Apply Template
    4.Click Preview.
    Following error displayed
    Problem: The system could not generate the PDF document.
    Reason: The system detected an error in the following code/object.
    Code: XML
    Object: PO
    Action: Please contact the system administrator and try again
    Please Note:The above scenario works for Contracts PO.
    The problem is only for Standard PO
    We have reviewed note:454479.1
    The file version of POXVCOMB.pls 115.69.11510.28
    But we have another test instance this also has the same version , the scenario works fine
    So we are confused why this is reproducible only for a particular instance with same file versions
    If anyone can suggest a solution pls give me a reply
    Already SR is logged for the same -SR 3-1272761221, awaiting reply from support

    Please reply if any update on the above query is present.

  • DELIVERY COMPLETED indicator for Services Purchase Order

    hello experts,
    i'm working in SAP with R3 4.7 for developing funtion / BAPI for a mobile web application for services purchase order.
    i have a big problem:
    is it possibile to set the DELIVERY COMPLETED indicator (<i>ELIKZ</i>) in services purchase order via BAPI or Function Module?
    <i>I'm working with BAPI_PO_CHANGE but and i succeded with material PURCHASE ORDER but not with SERVICES PURCHASE ORDER</i>.
    can anyone help me?
    thanks in advance,
    Eliana

    For material:
    Delivery completion (DCI) tick available at line item level for each material (EKPO- ELIKZ)so you can check for the each material in PO the DCI is available or not.
    For Services:
    As Service code (Service line items) are maintained in details screen of Header line item. So whenever the DCI (Delivery completion indicator) marked for that Header line item it means that all the service line items are marked as DCI for that Header line.
    DCI indicator can mark manually in Change PO mode and automatically when service entry done as final for that Header line.
    So you can check the DCI for service same way as you do for material
    Hope it will help you
    Regards
    Vikrant

  • Automatic Flow of Tax Code in the purchase order (Service)

    Dears,
    My purpose is to populate the Tax Code automatically in the Service Purchase order (Account assignment U and Item Category D). The tax code in the purchase order is required for ERS.
    If i maintain the tax code in the info record for a material, then the tax code is getting automatically flown from the Info record to the purchase order.
    However, if I maintain the tax code in the info record for a service, then the tax code is not getting automatically flown from the Info record to the purchase order. Is there any other settings to be maintained to populate the tax code for the service purchase order?
    Thanks & Regards,
    Ramesha

    Hi,
    The tax code in PO is at item level for stock material.
    In your case you cant make it default as inforecord field is at service level(You cant make it default for every service specifications you create at item detail level)
    Check the field info record in your service PO.
    Regards,
    Deepak.

  • Good receipt problem for subcontracting purchase order

    Good receipt problem for subcontracting purchase order
    with account assignment type ‘E’.
    After update to ECC 6.0. Do good receipt for subcontracting purchase order with account assigment 'E'.The system show the error message(KI235)----Two cost elements (Change in Stock (Subcontracting)&Outside processed fee) haven't CO account assignment.but the field status  for sale order is option entry , when I default cost center for the cost element  in OKB9.the system post the material document and generate the following accounting document.
    Doc.Type : WE ( Goods receipt ) Normal document
    Doc. Number    5000056065       Company code    1000         Fiscal year     2007
    Doc. date      2007.12.04       Posting date    2007.12.04   Period          12
    Calculate Tax
    Doc.currency   HKD
    tm PK Account    Account short text   Tx Cost Ctr   SaleOrder               Amount
    1 89 13500000   Stock-Work in proces                   1007823  10             274.4
    2 96 21210010   GR/IR Clearing                             1007823  10             205
    3 91 41010102   Chg in Stock(Subcon)    10901099  1007823  10            274.4
    4 86 41031000   Outside processed fe     10901099  1007823  10            205  
    5 99 13500000   Stock-Work in proces                    1007823  10            69.4
    6 81 41010101   Cost of Prod (Subco)                      1007823  10           69.40
    My problem is:
    When use MIGO to do good receipt for subcontracting Purchase order, for consumption account((Change in Stock (Subcontracting)-41010102&Outside processed fee--41031000) ,why the system don’t recognize the sale order filled as CO account assignment?

    Dear fanny chen
    Did you get a solution for your open question?
    I`m facing the same problem, so any help yould be appreciated.
    Regards

  • Error during Post Goods Issue of Material in VL02N for STO Purchase Order

    I am getting one error message during Post goods issue of Material for STO Purchase order.
    I am doing the Post goods issue in T code VL02N
    Error is " Account type D is not defined for Document type WL"
    What is the settings required to be done.
    Thanks,
    Shailendra

    Please check Plant customer master reconsilation account properly maintained or not in XD03 transaction.

  • Automatic account postings (for Intercompany Purchase order and Sales order

    Hi all,
    I need some help related to the automatic account postings (for Intercompany Purchase order and Sales order)which i can set for the follwoing scenarios. I have looked on the forms and searched alot but not able to a single solution to solve both the pupose. if one scenario works the other doesnt. Please advise.
    I have created the master data
    Customer receiving--G001
    Sales Org.--GXIN
    Distr. Channel- 01
    Division - 00 
    Company code receiving - G1
    customer supplying- V001
    company code for supplying- V1
    2 different scenarios
    1- Intercompany Purchase order in which a Customer receiving- G001, gets stock replenishment NB purchase order from supplying company V1- GI  and GR of stock is done. Biling document for customer receiving G001 is created. But now I need a way to do the opposite side posting at the supplying customer -V001-- this I do using an Idoc which creates a Invoice receipt for creditor(supplying customer) V001.
    2. Sales order-- A customer X001 of company code G1 buys stock from the company code V1. the customer G001 of company code G1 bills the customer X001, but the intercompany billing doc/ invoice is created for the customer G001 by company code V1.  then now i want an automatic account posting to be created at the supplying customer V001 via idoc.
    Can this be achivable via Idoc with automatic account postings.   
    Please let me know if it doesnt make sense. thanks to all in advance
    cheers
    Jasmeet

    Hi all,
    For the Sales order and automatic posting we have created an output type ZR4N- this is creating a batch input session which can be triggered to be processed autmatically.
    For the intercompany Purchase order -from Invoice we are creating a different output RD04 (sap standard) which creates invoice receipt at the vendor side.
    Rest of the settings are defined using SAP standard functionality within transaction OBCA, OBCB, OBCC, OBCD,OBCE
    thanks for viwing the post
    Cheers
    Jasmeet

  • Disabling spool request generation for a purchase order

    Hi,
    I have a requirement as follows :
    In ME22n, according to standard configuration for a purchase order whenever the indicators 'Deliv. compl' or 'invoice flag' is checked or unchecked and saved, a spool request is generated. This spool request can be viewed in messages tab of PO.
    My requirement is to disable the spool request generation on change of the above mentioned indicators.
    I have found a user exit 'EXIT_SAPMM06E_016' which is triggerred on clicking on 'SAVE' of PO.
    I am unable to find the field or structure with which i can disable the generation of spool request.
    Your help is much appreciated!
    Thanks & Regards,
    Richa Aggarwal

    Richa,
    you can replace 101 with your routine number. who said you cannot? in NACE, output procedure
    the code in 101.
    FORM KOBED_101.
      LOOP AT XNAST WHERE KSCHL EQ KOMT1-KSCHL AND
                          OBJKY EQ MSG_OBJKY   AND
                          AKTIV EQ SPACE       AND
                          VSTAT EQ '0'.
        EXIT.
      ENDLOOP.
      CHECK SY-SUBRC NE 0.
      SY-SUBRC = 4.
      CHECK ( KOMKBEA-DRUVO EQ NEU OR KOMKBEA-DRUVO EQ AEND ).
      CLEAR SY-SUBRC.
    ENDFORM.
    *       FORM KOBEV_101                                                *
    FORM KOBEV_101.
      LOOP AT XNAST WHERE KSCHL EQ T683S-KSCHL AND
                          OBJKY EQ MSG_OBJKY   AND
                          AKTIV EQ SPACE       AND
                          VSTAT EQ '0'.
        EXIT.
      ENDLOOP.
      CHECK SY-SUBRC NE 0.
      SY-SUBRC = 4.
      CHECK ( KOMKBEA-DRUVO EQ NEU OR KOMKBEA-DRUVO EQ AEND ).
      CLEAR SY-SUBRC.
    ENDFORM.
    so you can copy the code from these forms, and keep them before your code in your custom routine,.. like:
    FORM KOBED_901. "==> i am creating a new VOFM routine 901 here
      LOOP AT XNAST WHERE KSCHL EQ KOMT1-KSCHL AND
                          OBJKY EQ MSG_OBJKY   AND
                          AKTIV EQ SPACE       AND
                          VSTAT EQ '0'.
        EXIT.
      ENDLOOP.
      CHECK SY-SUBRC NE 0.
      SY-SUBRC = 4.
      CHECK ( KOMKBEA-DRUVO EQ NEU OR KOMKBEA-DRUVO EQ AEND ).
      CLEAR SY-SUBRC.
    "==> from here add your code.
    data:lv_subrc type sy-sibrc.
    if xyz NE asdasd "==> your validations..
    lv_subrc = 4.
    endif.
    sy-subrc = lv_subrc.
    ENDFORM.
    *       FORM KOBEV_901                                                *
    FORM KOBEV_901.
      LOOP AT XNAST WHERE KSCHL EQ T683S-KSCHL AND
                          OBJKY EQ MSG_OBJKY   AND
                          AKTIV EQ SPACE       AND
                          VSTAT EQ '0'.
        EXIT.
      ENDLOOP.
      CHECK SY-SUBRC NE 0.
      SY-SUBRC = 4.
      CHECK ( KOMKBEA-DRUVO EQ NEU OR KOMKBEA-DRUVO EQ AEND ).
      CLEAR SY-SUBRC.
    "==> from here add your code.
    data:lv_subrc type sy-sibrc.
    if xyz NE asdasd "==> your validations..
    lv_subrc = 4.
    endif.
    sy-subrc = lv_subrc.
    ENDFORM.

Maybe you are looking for

  • Infospoke data extraction fail

    Hello Experts, I created an infopoke for my cube and extracting the data into a DBtable. I get this error: 'Unable to activate the table /BIC/OHZISPKA1' Where ZISPKA1 is the infospoke created. Any suggestions appreciated. Thanks, SWM

  • Apple TV audio issues

    Hi. I have a third generation Apple TV. I have an HDMI running directly into my Yamaha receiver. When I toggle back and forth between Apple TV and my regular TV, I am more often that not losing audio. I am not using an optical audio cord. Could someo

  • Newbie question :- An IN statement question

    I have the following issue. I want to use an IN statement (As below), This will enable the user to enter upto 5 serial numbers. select col.contract, col.order_no, col.customer_no, ci.name Customer_Name, odn.ship_address1, odn.ship_address2, odn.ship_

  • Error:No text defined for language ZF usage A appl V.cond type ZABC(T685T)

    Hi Experts, I have created a new condition type ZABC for discount correction and the pricing is working perfectly as required. The issue is when I login using Chinese language ZF, then I get the below error in VA01- No text is defined for language ZF

  • A KISS systray pacman/aur updates checker for KDE

    I have created a simple python-QT script that places an icon in the system tray and informs you when updates for both pacman and AUR are available. Also I created a bash script that does the real package updates checking. The python script depends on