Issues extracting attachments to purchase req. using SO_DOCUMENT_READ_API1

I am trying to download the attachments of a purchase requisition to a folder in the application server. The file downloads correctly but cannot be read when extracted to the PC using transaction CG3Y. The error tells me that the file has been damaged beyond repair. Could you help me correct my code so as to avoid damaging the file?
LOOP AT t_links INTO w_links.
    ADD 1 TO: w_count ,
              w_attach.
    w_document_id = w_links-instid_b.
    CLEAR w_filter.
    REFRESH: t_header  ,
             t_contents.
    CALL FUNCTION 'SO_DOCUMENT_READ_API1'
      EXPORTING
        document_id                = w_document_id
        filter                     = w_filter
      TABLES
        object_header              = t_header
        object_content             = t_contents
      EXCEPTIONS
        document_id_not_exist      = 1
        operation_no_authorization = 2
        x_error                    = 3
        OTHERS                     = 4.
    CASE sy-subrc.
      WHEN 0.
        CLEAR: w_filename ,
               w_extension.
        LOOP AT t_header INTO w_header.
          CASE w_header-line+0(12).
            WHEN '&SO_FILENAME'.
              SHIFT w_header-line LEFT BY 13 PLACES IN CHARACTER MODE.
              SPLIT w_header-line AT '.' INTO w_filename
                                              w_extension
                                              IN CHARACTER MODE.
              CONCATENATE wp_banfn
                          w_filename
                INTO w_filename.
              CONCATENATE wc_file
                          w_filename
                          w_extension
                INTO w_file.
              EXIT.
          ENDCASE.
        ENDLOOP.
        OPEN DATASET w_file FOR OUTPUT IN BINARY MODE.
        CASE sy-subrc.
          WHEN 0.
            LOOP AT t_contents INTO w_contents.
              TRANSFER w_contents TO w_file.
            ENDLOOP.
            CLOSE DATASET w_file.
            SELECT COUNT(*)
              FROM zmm_mro_dash_att
              WHERE banfn EQ wp_banfn
              AND   links EQ w_file.
            CASE sy-dbcnt.
              WHEN 0.
                w_zmm_mro_dash_att-mandt = sy-mandt.
                w_zmm_mro_dash_att-banfn = wp_banfn.
                w_zmm_mro_dash_att-links = w_file.
                INSERT zmm_mro_dash_att FROM w_zmm_mro_dash_att.
                CASE sy-subrc.
                  WHEN 0.
                    COMMIT WORK.
                  WHEN OTHERS.
                    ROLLBACK WORK.
                ENDCASE.
            ENDCASE.
        ENDCASE.
    ENDCASE.
  ENDLOOP.

LOOP AT t_links INTO w_links.
    w_folder_id-objtp = w_links-instid_b+0(3).
    w_folder_id-objyr = w_links-instid_b+3(2).
    w_folder_id-objno = w_links-instid_b+5(12).
    w_object_id-objtp = w_links-instid_b+17(3).
    w_object_id-objyr = w_links-instid_b+20(2).
    w_object_id-objno = w_links-instid_b+22(12).
    REFRESH: t_objcont,
             t_objhead.
    CALL FUNCTION 'SO_OBJECT_READ'
      EXPORTING
        folder_id                  = w_folder_id
        object_id                  = w_object_id
      TABLES
        objcont                    = t_objcont
        objhead                    = t_objhead
      EXCEPTIONS
        active_user_not_exist      = 1
        communication_failure      = 2
        component_not_available    = 3
        folder_not_exist           = 4
        folder_no_authorization    = 5
        object_not_exist           = 6
        object_no_authorization    = 7
        operation_no_authorization = 8
        owner_not_exist            = 9
        parameter_error            = 10
        substitute_not_active      = 11
        substitute_not_defined     = 12
        system_failure             = 13
        x_error                    = 14
        OTHERS                     = 15.
    CASE sy-subrc.
      WHEN 0.
        READ TABLE t_objcont INTO w_objcont INDEX 1.
        CASE sy-subrc.
          WHEN 0.
            CASE w_objcont-line+0(17).
              WHEN '&SO_KProObjectID='.
                w_loio_object = w_objcont-line+17.
            ENDCASE.
        ENDCASE.
        CLEAR w_phio_object.
        CALL FUNCTION 'SO_LOIO_PHIO_GET'
          EXPORTING
            loio_object        = w_loio_object
          IMPORTING
            phio_object        = w_phio_object
          EXCEPTIONS
            kpro_inconsistency = 1
            x_error            = 2
            OTHERS             = 3.
        CASE sy-subrc.
          WHEN 0.
            CLEAR w_comp_id.
            LOOP AT t_objhead INTO w_objhead.
              CASE w_objhead-line+0(13).
                WHEN '&SO_FILENAME='.
                  w_comp_id = w_objhead-line+13.
              ENDCASE.
            ENDLOOP.
            REFRESH: t_data_txt,
                     t_data_bin.
            CLEAR w_comp_size.
            CALL FUNCTION 'SCMS_R3DB_GET'
              EXPORTING
                crep_id      = 'SOFFDB'
                doc_id       = w_phio_object-objid
                comp_id      = w_comp_id
              IMPORTING
                comp_size    = w_comp_size
              TABLES
                data_txt     = t_data_txt
                data_bin     = t_data_bin
              EXCEPTIONS
                error_import = 1
                error_config = 2
                OTHERS       = 3.
            CASE sy-subrc.
              WHEN 0.
                CONCATENATE wc_file
                            wp_banfn
                            w_comp_id
                  INTO w_filename.
                CALL FUNCTION 'HR_CA_DOWNLOAD_TO_APPSERVER'
                  EXPORTING
                    filename           = w_filename
                    filesize           = w_comp_size
                  TABLES
                    data_tab           = t_data_bin
                  EXCEPTIONS
                    invalid_filesize   = 1
                    no_authority       = 2
                    dataset_open_error = 3
                    OTHERS             = 4.
                CASE sy-subrc.
                  WHEN 0.
                    SELECT COUNT(*)
                      FROM zmm_mro_dash_att
                      WHERE banfn EQ wp_banfn
                      AND   links EQ w_filename.
                    CASE sy-dbcnt.
                      WHEN 0.
                        w_zmm_mro_dash_att-mandt = sy-mandt.
                        w_zmm_mro_dash_att-banfn = wp_banfn.
                        w_zmm_mro_dash_att-links = w_filename.
                        INSERT zmm_mro_dash_att FROM w_zmm_mro_dash_att.
                        CASE sy-subrc.
                          WHEN 0.
                            COMMIT WORK.
                          WHEN OTHERS.
                            ROLLBACK WORK.
                        ENDCASE.
                    ENDCASE.
                ENDCASE.
            ENDCASE.
        ENDCASE.
    ENDCASE.
  ENDLOOP.
Hope this helps.

Similar Messages

  • Removing attachments from Purchase Order using DIAPI

    Dear all,
    I have added attachment to PO using DIAPI. I have given below the code.
               Dim oAtt As SAPbobsCOM.Attachments2 = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oAttachments2)
                Dim FileName As String = ""
                Dim SourceFile As String = ""
                Dim DestinationFile As String = ""
                For i As Integer = 0 To PurchaseOrderInfo.Attachments.Length - 1
                    FileName = PurchaseOrderInfo.Attachments(i).FileName
                    SourceFile = PurchaseOrderInfo.Attachments(i).SourcePath & "\" & FileName
                    DestinationFile = PurchaseOrderInfo.Attachments(i).TargetPath & "\" & FileName
                    If i > 0 Then oAtt.Lines.Add()
                    oAtt.Lines.SetCurrentLine(i)
                    oAtt.Lines.FileName = System.IO.Path.GetFileNameWithoutExtension(FileName)
                    oAtt.Lines.FileExtension = Replace(System.IO.Path.GetExtension(FileName), ".", "")
                    oAtt.Lines.SourcePath = PurchaseOrderInfo.Attachments(i).SourcePath
                    If System.IO.File.Exists(DestinationFile) Then
                        System.IO.File.Delete(DestinationFile)
                    End If
                    If PurchaseOrderInfo.Attachments(i).Override = True Then
                        oAtt.Lines.Override = SAPbobsCOM.BoYesNoEnum.tYES
                    Else
                        oAtt.Lines.Override = SAPbobsCOM.BoYesNoEnum.tNO
                    End If
                Next
                Dim iAttEntry As Integer = -1
                Dim lResult As Long
                Dim lErrCode As Long, sErrMsg As String = ""
                lResult = oAtt.Add()
             It works fine. But, I am not  able to remove an attachment via diapi.
             Could you please help me how to solve this.
    Thanks in advance.
    Manikandan

    I am pretty sure you are looking for SAP Business One SDK Topic Space. To ensure you are posting in the correct SCN Space, always check the description for the Space under the Overview tab.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada

  • Enter short text error when creating a purchase requisition using ME51

    Hello
    I would be grateful if someone can help. I am currently trying to raise a purchase req using ME51. The purchase req is for one item so i enter details of this item on line 1. However when i try to save the purchase req i get an error message stating "enter short text"  on line 3 and it does not let me continue. Line 3 however does not contain any item information so i dont understand why i am getting this error message.
    Another user created the same purchase req and it worked fine for them so i am not sure why i am getting this message.
    I  would be grateful if you can please help.
    Thank you
    Regards
    Bindi

    Syed
    I  have tried logging off and logging back in and still having this issue.
    Jurgen
    No im only having this problem in a ME51 creating purchase requisitions and not in a CATT or any batch input recording
    Regards
    Bindi

  • Attachment transfer issue from Shopping cart to Purchase req in ECC

    Hello,
    How are you all. Need your expert advise..
    We are trying to achieve functionality where documents which are attached on shopping cart get transfer into Purchase req in ECC (Classic Scenario with SRM 5.0 and ECC 6.0). For this we have done following config / enhancements:
    - Activated BADI "BBP_CREATE_BE_RQ_NEW" in SRM with following code for attachment;
    cs_ctrl_att-BE_DOC_TYPE = 'SRM'.
    cs_ctrl_att-BE_storage_cat = 'DMS_C1_ST'.
    cs_ctrl_att-TRANSFER_ACTIVE = 'X'.
    - Created new document type ECC with t.code DC30 for SRM and assigned the object links for EBAN table.
    After performing above task we are able to see Link of the attachment into Purchase req in ECC with document number (i.e. the one we assigned while defining document type in DC30) but not able to open the document in ECC.
    Could you please let us know if there is any settings which we have missed for actually opening documents in ECC?
    Thank you
    Ritesh

    Issue as reported Please let me know why the docs are not uploaded to SRm succesfully .
    I am facing the below weird issue .
    Easy shopping >Shop> eHiring catalog
    Click Transfer to SRM
    Now click on the button ‘Details’ and open the tab ‘Notes and attachments’
    All attchments are names after the 1st attachment and all have the same file type
    Basically you have lost all you attachments here, except 1 (when you click on the link, all links refer to the same document, so not just cosmetic). This is a problem.
    When you order this shopping cart and search for it and open it again, the attachment tab is even completely empty, so now all attachments are lost.
    Something like this, but less severe, happens in the process a bit further.
    - Approve the shopping cart with the applicable approver
    - Log in as Hiring desk:
    Still no original attachments (like job descriptions).
    Now click button ‘responses and awards’
    Click tab ‘Items’ and fill out price ‘40’ euro
    Click notes and attachment tab
    I added 5 attachments
    As can be seen here, the docx becomes an xlsx again, but it looks like it just takes over the 1st file type that was uploaded, it can also be the other way around (xlsx becomes docx) when the 1st uploaded attachment is a document.
    But in this case, when you click on the link, it will open the right file with the right program, so over here it looks like it is just cosmetic.

  • How to Change attachment URL on a Purchase Req?

    Attachments in the EBP shopping carts are transferred to an ITS server and are linked to a back end R/3 Purchase Requisition. 
    Note that the attachments are physically stored on ITS server and the link (URL) to the attachment and Purchase Req is stored in SAP. 
    As a part of decommissioning, the server which was used for storing attachments is replaced with a new server and all the attachments are moved to new server.  
    Since the link associated to the Purchase Req and attachment is not changed, when user is trying to open the Purchase Req attachment, it is not displaying becuase all the attachments are moved to new server. 
    How to change the link (URL) in the Purchase Req so that it will point out to the new server instead of old server. 
    Due to the following reasons manually changing the URL is not advisable.
    1) 40,000 attachments link need to be changed.
    2) System is not allowing to change the URL manually because of the user differences.  All the attachment links are attached to Purchase Reqs by RFC user (since these are transferred from EBP environment). 
    Please advise what should be the feasible solution to change the URL (link) on the Purchase Req so that business can open the attachment with no issues.
    Thanks in advance

    According to SAP, since purchase order is a legal document they do not support the process of changing document number.  They suggested I do the change with debug and replace at my own risk.  In ME22N go to debug and type MEPO_TOPLINE-BEDAT.  The values for this field show up as 29991231 that should be changed to 20191231 and press F8, then save the purchase order.

  • Goods recipient field not available when creating a service purchase req

    We are trying to create a release strategy for purchase requisitions with acount assignments K, F and P.  The release strategy would use the requisitioner and goods recipient fields to determine the release group.  The issue is when creating a purchase req with item category D for any account assignment, the recipient field cannot be populated.  It is greyed out.  I tried setting the field as mandatory in the IMG at the account assignment level but it doesn't prompt me for a recipient if item category D is entered.  Is there a way to allow this field to be populated?  I don't care if the value is transferred to the purchase order but I need it populated to determine the appropriate release strategy.  We are not using workflow so that is not an option.  Any suggestions would be appreciated.

    Srinivas, I appreciate the response but the requisitioner field is not the problem.  I can set that field to mandatory.  The issue is I cannot populate the recipient field that's located on the account assignment tab of the purchase req.  The recipient field can be populated if the item category field is blank but as soon as I populate the item category with D for service, the recipient field is unavailable.  Is there a way to populate this field when the item category is D?

  • I purchased a used 2008 iMac. And although the previous owner said he deleted all of his information his iCloud account is still the primary. I don't have a clue about what to do about it. I signed him out and logged in with my info, but still no go.

    I purchased a used 2008 iMac. And although the previous owner said he deleted all of his information, his iCloud account is still the primary. I don't have a clue about what to do about it. I signed him out and logged in with my info, but still no go. Is there any way to eliminate his iCloud account and make mine the primary without rebooting it back to factory settings? There was an update, I believe, that I couldn't install because i didn't have his password that is what made me aware that his acct. was still active. I don't know what to do. Any help is greatly appreciated. Thank you.

    Before buying a second-hand computer, you should have run Apple Diagnostics or the Apple Hardware Test, whichever is applicable.
    The first thing to do after buying the computer is to erase the internal drive and install a clean copy of OS X. You—not the original owner—must do that. Changes made by Apple over the years have made this seemingly straightforward task very complex.
    How you go about it depends on the model, and on whether you already own another Mac. If you're not sure of the model, enter the serial number on this page. Then find the model on this page to see what OS version was originally installed.
    It's unsafe, and may be unlawful, to use a computer with software installed by a previous owner.
    1. If you don't own another Mac
    a. If the machine shipped with OS X 10.4 or 10.5, you need a boxed and shrink-wrapped retail Snow Leopard (OS X 10.6) installation disc from the Apple Store or a reputable reseller—not from eBay or anything of the kind. If the machine is very old and has less than 1 GB of memory, you'll need to add more in order to install 10.6. Preferably, install as much memory as it can take, according to the technical specifications.
    b. If the machine shipped with OS X 10.6, you need the installation media that came with it: gray installation discs, or a USB flash drive for a MacBook Air. You should have received the media from the original owner, but if you didn't, order replacements from Apple. A retail disc, or the gray discs from another model, will not work.
    To start up from an optical disc or a flash drive, insert it, then restart the computer and hold down the C key at the startup chime. Release the key when you see the gray Apple logo on the screen.
    c. If the machine shipped with OS X 10.7 or later, you don't need media. It should start up in Internet Recovery mode when you hold down the key combination option-command-R at the startup chime. Release the keys when you see a spinning globe.
    d. Some 2010-2011 models shipped with OS X 10.6 and received a firmware update after 10.7 was released, enabling them to use Internet Recovery. If you have one of those models, you can't reinstall 10.6 even from the original media, and Internet Recovery will not work either without the original owner's Apple ID. In that case, contact Apple Support, or take the machine to an Apple Store or another authorized service provider to have the OS installed.
    2. If you do own another Mac
    If you already own another Mac that was upgraded in the App Store to the version of OS X that you want to install, and if the new Mac is compatible with it, then you can install it. Use Recovery Disk Assistant to prepare a USB device, then start up the new Mac from it by holding down the C key at the startup chime. Alternatively, if you have a Time Machine backup of OS X 10.7.3 or later on an external hard drive (not a Time Capsule or other network device), you can start from that by holding down the option key and selecting it from the row of icons that appears. Note that if your other Mac was never upgraded in the App Store, you can't use this method.
    3. Partition and install OS X
    a. If you see a lock screen when trying to start up from installation media or in Recovery mode, then a firmware password was set by the previous owner, or the machine was remotely locked via iCloud. You'll either have to contact the owner or take the machine to an Apple Store or another service provider to be unlocked. You may be asked for proof of ownership.
    b. Launch Disk Utility and select the icon of the internal drive—not any of the volume icons nested beneath it. In the  Partition tab, select the default options: a GUID partition table with one data volume in Mac OS Extended (Journaled) format. This operation will permanently remove all existing data on the drive.
    c. An unusual problem may arise if all the following conditions apply:
              OS X 10.7 or later was installed by the previous owner
              The startup volume was encrypted with FileVault
              You're booted in Recovery mode (that is, not from a 10.6 installation disc)
    In that case, you won't be able to unlock the volume or partition the drive without the FileVault password. Ask for guidance or see this discussion.
    d. After partitioning, quit Disk Utility and run the OS X Installer. If you're installing a version of OS X acquired from the App Store, you will need the Apple ID and password that you used. When the installation is done, the system will automatically restart into the Setup Assistant, which will prompt you to transfer the data from another Mac, its backups, or from a Windows computer. If you have any data to transfer, this is usually the best time to do it.
    e. Run Software Update and install all available system updates from Apple. To upgrade to a major version of OS X newer than 10.6, get it from the Mac App Store. Note that you can't keep an upgraded version that was installed by the original owner. He or she can't legally transfer it to you, and without the Apple ID you won't be able to update it in Software Update or reinstall, if that becomes necessary. The same goes for any App Store products that the previous owner installed—you have to repurchase them.
    4. Other issues
    a. If the original owner "accepted" the bundled iLife applications (iPhoto, iMovie, and Garage Band) in the App Store so that he or she could update them, then they're irrevocably linked to that Apple ID and you won't be able to download them without buying them. Reportedly, Mac App Store Customer Service has sometimes issued redemption codes for these apps to second owners who asked.
    b. If the previous owner didn't deauthorize the computer in the iTunes Store under his Apple ID, you wont be able to  authorize it immediately under your ID. In that case, you'll either have to wait up to 90 days or contact iTunes Support.
    c. When trying to create a new iCloud account, you might get a failure message: "Account limit reached." Apple imposes a lifetime limit of three iCloud account setups per device. Erasing the device does not reset the limit. You can still use an iCloud account that was created on another device, but you won't be able to create a new one. Contact iCloud Support for more information. The setup limit doesn't apply to Apple ID accounts used for other services, such as the iTunes and Mac App Stores, or iMessage. You can create as many of those accounts as you like.

  • My MacBook Pro 13" (2012) is running Windows 7 on Bootcamp and there is an issue with the headset I'm using.

    My MacBook Pro 13" (2012) is running Windows 7 on Bootcamp and there is an issue with the headset I'm using. I use a cheap Logitech Stereo Headset H130, but since there is only on audio plugin on the computer, I purchased a 3.5 mm 4-pin smartphone audio adapter thingy. That allowed me to put both my the sound coming to my headset & the microphone on my headset onto one wire. Everything worked wonderfully when running the Mac OS since they probably have support for that kind of stuff. The problem is though that once I try to use the same method in Windows 7, the OS doesn't recognize my headset microphone at all, but, instead when recording my voice decides to use the built-in mac microphone. Using this adapter still allows me to hear from my headset, but not use the microphone and that becomes a problem. It might be so that Windows 7 doesn't have support\drivers for that... How should I continue from here on out? Any advice?

    From what I have read from others on here you may be out of luck. You would need the appropriate Windows drivers for the Cirrus chip in the Mac and no one has been able to successfully locate them. Apple wouldn't support this since Windows is an optional install.
    Sorry to bring the bad news.

  • Goods Issue with reference to Purchase Order

    Hi MM Gurus,
    Is there any settings to do Goods Issue with reference to Purchase order?
    I want to capture the material price in purchase order during goods issue instead of standard price or moving average price.
    Thanks in advance
    Dinesh

    Hello Dinesh,
    Batch valuation is similar to split valuation. Here is the link on how batch valuation works.
    http://help.sap.com/saphelp_47x200/helpdata/en/25/283db54f7811d18a150000e816ae6e/content.htm
    Please check in sandbox environment before using.
    Hope this helps.
    Regards
    Arif Mansuri

  • How to determine the purchasing group using BADI BBP_PGRP_FIND

    Hello Friends
    We use SRM Server 5.5 (Classic scenario).
    As you know that, purchasing group has the responsible product categories in PPOMA_BBP, when user creates the shopping cart to determine the purchasing group. 
    In our case, we should determine the purchasing group using other criteria.
    MM side is OK to determine the purchasing group using specific criteria.
    Because Material Master has the purch. Group information. 
    In case of SRM, we should develop the logic using BBP_PGRP_FIND BADI.
    But I’m not sure how to use this badi.
    We want to determine the purchasing group based on the following logic.
    If described shopping cart without product ID
    Do Standard purchasing group determination logic.
    Else
    Assign the purch group from MARC- EKGRP (Purchasing Group)
    Is it possible to determine above the logic?
    If yes, Could you give me some information?
    Thank you,
    Best regards,
    SH
    Message was edited by:
            So Hee Lee

    Thank you for your answer.
    I found the way to develop the our logic using BADI: bbp_pgrp_find.
    But I’m not sure the following logic is correct.
    To differentiate described req. or product id req, We check the E_ITEM – PRODUCT using BBP_PD_SC_GETDETAIL.
    IF E_ITEM – PRODUCT is blank, Read the category ID to find the purchasing group.
    To find the purch. Group, we can use FM:  BBP_OM_DETERMINE_RESP_PGRP.
    Import parameter: IS_RESP_ITEM_DATA – Category _ID
    Export parameter: ES_PURCH_DATA
    ELSE
    CALL the customer function to read the R/3 purchasing group from MARC- EKGRP
    Search the HRT5500-TABNR using purchasing group from R/3.
    Search the HRP5500 – OBJID using HRT5500-TABNR
    Call the FM:  BBP_OM_DETERMINE_RESP_PGRP
    Import parameter: IS_RESP_ITEM_DATA – PROC_GROUP – OBJID
    Export parameter: ES_PURCH_DATA
    Thank you
    Best Regards
    SH

  • MM Workflow - Purchase Req Release

    Hi,
    I have set-up MM Workflow to notify a user to release outstanding reqs. I used BUS2105/TS20000159 This works as expected. However the business want a summary of the req details to appear in the message. The standard message has no description. It just shows the Purchase Req No in the Subject Line.
    I was hoping to call BUS2105 ->Method->PurchaseRequisition.GetDetail1. This calls BAPI: BAPI_PR_GETDETAIL and would give me the details I require. I would then populate this data in the body of the message.
    I am pretty new to Work Flow and was hoping you could guide me in the steps required to achieve this please?
    Any help would be greatly appreciated.
    Many Thanks,
    Phil

    Hi,
    Firstly create a workflow container element of type as key parameter in the business object
    1 .Create a step in the workflow
    2. Create a task in the workflow
    3. Assign the businees object in the task..
    4. Create a container element in the task
    5. Create binding between the TASK and METHOD of business object
    6. Create binding between Workflow container element and Task Container element.
    7. Then in Basic data of workflow ( HAT ICON) go to start events and assign the business object
        and the event which has to trigger the workflow.
    8. Create a step called mail so as to know whether it has triggered the workflow when the Business
        object had triggered.
    or
    Switch on the event trace (SWELS) and check the event trace SWEL... if the workflow is triggered you would find reciever as workflow..
    If you still have to view graphically the goto
    Tutorials> Business Workflow> and see the topic how to create activity step in the workflow.
    Hope this would help you.
    Regards
    Narin

  • Repeated purchase req. in MRP run procudure

    Dear SAP experts,
    Here at my client site, i have one scenario of mrp run of consumables.They maintain safety stock in material master MRP view,
    I am using MRP type PD.Now after MRP run,system creates purchase requisition as per safety stock qty,( consider initial stock
    is zero) now when i convert Purchase requisition into purchase order. i refresh the MD04 list, as soon as i refresh i get the
    purchase req. converted into PO item.Upto this point its ok. but during this refresh function i get repeated purchase requisition
    of the same quantity as previous one..Why this is happening? any specific reason behind this? my logic is not getting clear.
    please assist me to find exact reason..
    Thanx in advance..
    Regards,
    Ravi

    HI
    If the initial stock is zero then system will generate the PR for the safety stock also and then for the Dependent requirement.
    Check and revert
    Regards
    Anupam Sharma

  • I have just purchased a used MacBook Pro. Should I use a virus protection program on this computer? I can get Norton for free through my cable provider. Thanks, funkro

    I have just purchased a used MacBook Pro. Should I use a virus protection program on this computer? I can get Norton for free through my cable provider. Thanks, funkro

    See my Mac Malware Guide.
    This issue is more complex than some of the responses you have gotten are indicating. You definitely should avoid Norton, but there actually IS malware out there, and all anti-virus software is NOT "snake oil." Don't listen to anyone who tells you otherwise, as they don't know what they're talking about.
    Although you should be able to do without anti-virus software just fine, there are some perfectly good reasons to install it and some good anti-virus apps to use if you decide to do so. Further, even if you do avoid anti-virus software, you need to understand what the threats are so you don't end up thinking you're totally safe and do something you shouldn't.

  • How to create multiple Purchase Order  using the same document number?

    HI Friends,
    I m in a product which extracts data from SAP and stored in Access database.
    For that,while i extracting Purchase Order from the Demo Database (SBODemo_US)for OEC Computers,the same DocNum is used for several Purchase Order using Index Line numbers.
    eg:
    DocNum for Purchase Order1 -->3000   0 (Index)
      DocNum for Purchase Order2 -->3000   1 (Index)
        But i can't create multiple Purchase Order using same DocNum manually in SAP B1,Could anybody please help me <b>to create a Purchase Order using same DocumentNumber?</b>
    Thanks in Advance
    SooriyaKala.P

    Hi,
    The problem statement is not quite clear to me.
    As far as I understand your statement, I think you want to club multiple orders into one purchase order using the index incrementally.
    For this I think once you have created the first purchase order, open the purchase order in edit mode the second time and append the new line items.
    If I am getting you wrong please explain the problem statement in more detail.
    Regards,
    Rara.

  • Trigger CIF during custom field change on Purchase Req. and PO

    Hi,
    We added a custom date field in Purchase Req. and Purchase Order transactions (ME52N/ME22N) in ECC. When this custom field gets changed along with any other standard field, outbound CIF process happens. However, when we change this custom field only, then outbound CIF doesn't happen. I believe we need change pointers and may be custom code to trigger outbound CIF. I would appreciate any suggestions on how to achieve this functionality.
    Thanks.
    Naveen

    Hello Naveen,
    Use user exit EXIT_SAPLMEAP_001 here, the structure CIFPUORCUS must be enhanced with custom fields so that the document date can be included (IT_OUTPUT_CUS).transferred to CT_MM_DOC. You need to fill EBAN and EKPO for change transfer. Also you can have the background job for RIMODINI to transfer the changes.
    Best Regards,
    R.Brahmankar

Maybe you are looking for

  • 2nd Display has fast motion jitters . . .

    I have a Dual 3.2GHz Quad-Core Mac Pro with 8GB RAM. I had the NVIDIA GeForce 8800 GT now have the NVIDIA Quadro FX 5600 and am getting the same issue with both. I have dual 30" displays setup as extended desktop. The primary display works fine but i

  • Can you drag the wave file out of garage band?

    I recorded some vocals and would like to send them to someone for editing. Is it possible to export the individual wave track?

  • How do I create video playlists in SmartCente​r 2.0?

    I have several dozen videos that I can see when I open up the video portion of SmartCenter and sort by Datse, Folders or All Videos however when I select "Playlists" it says "Playlists - No videos could be found" at the top of the screen just below t

  • Logic's presets for compression/space designer, etc.

    Hey Do you guys/gals find the presets worthwhile or do you tend to tailor your compressors/reverbs, etc.? Most of my vocals feel like they need something to bring them out and I'm wondering what you all tend to do with Logic's effects. Steve

  • 7950GX2 Changing Colors

    Occassionally my screen will have too much of one color after changing screens.  E.g. it will have a very red tint on the Windows login screen then a yellow tint on the desktop or some other color combination.  Forcing it to change screens will usual