Assign file creating problem in BAPI LSMW

Hello Experts!
Iu2019m trying to upload PO (Header/Item data) though BAPI Method. Iu2019ve one file having Header and Item data. At Assign Files Step when I try to assign file to PO Item Data. System gives me a message
(File 'C:\MySAP\ABAP Programing\LSMW\PORec.txt'
only be assigned to one source structure.)
Looks like system is not letting me give the same file which Iu2019ve given to PO Header data. Can anybody please tell me how I can assign the same file for Header and Item data.
Thanks.

check this weblog by niamesh how to handle header and item in lsmw.
LSMW with RFBIBL00

Similar Messages

  • Account assignment while creating reservation using bapi

    Hi , I am creating reservation using BAPI  (BAPI_RESERVATION_CREATE1), but when I seeing the open reservation account assignment field is blank, could any on ehelp me on this, i.e what parameter I am missing in BAPI for account assignment.
    best regards
    pankaj

    Hi,
    there is not field to assign the account assignment in Bapi..
    you need to assignt he account manaually.
    Assign account assignment category.
        SELECT * FROM eban INTO TABLE lt_eban WHERE banfn = w_banfn .
        IF sy-subrc = 0.                                     
          LOOP AT lt_eban .                 
            lt_eban-knttp = 'J'.    "assign your own account categeory
            MODIFY eban FROM lt_eban.
            COMMIT WORK AND WAIT.                            
          ENDLOOP.
    endif.
    Regards,
    Prabhudas

  • InDesign CS3: Problem in creating assignment files through API.

    I had written some code for InDesign CS2 that allows user to
    create an empty Assignment file,export any selected pageitem and add to the Assignment,save the assignment.
    Now I have ported the same code for InDesign CS3 by following porting guidelines.
    I am facing an issue in saving the article. When any page item is exported and added to the assignment, the exported file name displayed under the newly created assignment in Assignments Palette of InDesign. But when i save the assignment the exported file is moved into UnAssigned InCopy Content in the palette.
    Also the final InCopy file doesnot contain link to exported page item file(.incx).
    I am using the following API in my code,
    void ExportStoryAndCreateLink(const UIDRef & story,const IDFile & file,
    const FileTypeInfoID & fileTypeID
    ) [virtual]
    Please post in this thread if any one has come across this issue.
    Thanks in advance,

    Hi vivek,
    Have you tried adding the same document with the client ?
    OACT is the accounts table and this error message typically indicates that there is an account parameter missing somewhere in the system.
    Possible causes include:
    - you are using a tax group or warehouse which does not have all the required accounts set
    - There is a price rounding and the rounding price account has not been set in the account settings
    - etc.
    The first things I would check include the tax group settings and the G/L Account determination settings.
    Henry

  • Error in saving of 'Assign File' step in LSMW

    Hi all,
    I am preparing LSMW to load material master data for multiple sources, there are 4 flat files. In step 'Assign File', I created source structures as follows:.
    1. Structure 1
    2. Structure 2
        below Structure 2, we have children root
        2.1. Structure 2A
        2.2. Structure 2B
    but when I tried to save,it pops up with message : Using different sequential files is not allowed.
    Whats the problem ?
    thank you
    Chika

    Hii,
    I too faced the same situation,but i solved it.
    In specify files  select "Data for one source sturcture (Table)".

  • LSMW - problems with BAPI

    Hi guys,
    I want to use LSMW with certain BAPI that I found using transaction BAPI (object type BUS1006 for example). However I am not able to use it in LSMW - I get message "No interfaces could be found".
    Do you have any ideas how to make this BAPI available for LSMW?

    Hi
    After the step ‘Display Converted Data’ the exact content of the next steps may differ, depending on the import technique that you have chosen in step 1. The steps displayed by the program for the different import techniques are
    BAPI or IDoc:
    Start IDoc creation
              Start IDoc processing
    Create IDoc overview
    Start IDoc post-processing
    example
    Using BAPI in LSM Workbench
    We now go through a step by step process of realizing LSMW through a BAPI
    Details of BAPI used:
    - Business Object: BUS2012
    - Method: CreateFromData 
    Details of Message Type and Basic IDoc Type:
    - Message Type: PORDCR
    - Basic IDoc Type: PORDCR02 
    Step 1 : Go to transaction LSMW
    Step 2 : Enter project, subproject and object and click on Create
    Step 3: Enter the descriptions for Project, Subproject and Object as prompted
    Step 4: Now select Settings  IDoc Inbound Processing
    Step 5 :“IDoc Inbound Processing” screen appears. Enter the required details as shown below:
    Step 6 :Click on “Activate IDoc Inbound Processing”.
    Step 7 : Click on “Yes” when prompted for “Activate IDoc Inbound?”
    Step 8 : Hit on “Back” to return to the main screen
    Step 9: Click on Continue (F8). Following Screen appears
    Step 10: Select the Step 1 “Maintain Object Attributes” and select “Execute”
    Step 11 : Select the radio button “Business Object Method” and enter the following details:
    Business Object: BUS2012
    Method: CreateFromData
    Step 12: Save and click on BACK button. Following information message is displayed
    Step 13: Maintain Source Structure
    Step 14:Create source structure ‘HEADERDATA’ and a lower level structure ‘ITEMDATA’
    Save and go back to main screen
    Step 15 : Maintain source fields
    Enter the fields as shown below:
    Step 16:Maintain Structure Relations
    Maintain structure relations:
    - Select ‘E1PORDCR’ in previous fig. and click on CREATE Relationship. Following screen appears:
    - Select HEADERDATA and hit ENTER. Do the same for other
    structures
    Step 17 :Maintain Field mapping and conversion rules. Maintain field mapping as shown:-
    Step 18 : Specify File
    Provide the link for the test file. Maintain the same structure of the test file as defined before
    Step 19: Select ‘Assign Files’ & execute
    Step 20: Read Data
    Step 21: Display read data
    Step 22: Return to main screen and select ‘Convert Data’ followed by ‘Display Convert Data’
    Step 23: Return to main screen and select “Start IDoc generation”
    Step 24 : Process Idoc through the step ‘Start Idoc Processing’ on main screen
    Step 25: Click on ‘Create Idoc Overview’ on the main screen. Here the data record and status record of the Idoc can be viewed
    Reward if usefull

  • Problem while creating WBS elements using LSMW

    Hello experts,
    I am able to create Project Definitions using LSMW. (using recording)
    But there is a problem while creating WBS elements.
    Tcode CJ20 has table control and that will become problem for multiple rows (levels).
    Can anyone suggest a solution to mass upload WBS elements?
    Thanks for your valuable advice.

    Hi,
    Instead of using "BAPI_PROJECT_MAINTAIN", use following solution. We are using this solution and it is working pretty good.
    If the WBS element is already created and you want to create one more with same data, first get the WBS related information using BAPI_PROJECT_GETINFO as you are doing currently.
    I am using different sets of BAPIs to create project, create / change WBS element.
    I use function module from Function group CJ2001 ( Project related BAPIs ), CJ2054 ( WBS related BAPIs ) and PS_BAPI ( pre/post processing BAPIs ). There are specific order in which you need to execute these BAPIs.
    For example if you want to create / change the WBS element, the BAPIs sequence is:
    <b>1. BAPI_PS_INITIALIZATION
    2. BAPI_BUS2054_CREATE_MULTI ( to create  WBS )
             or
    2. BAPI_BUS2054_CHANGE_MULTI ( to change WBS )
    3. BAPI_PS_PRECOMMIT
    4. BAPI_TRANSACTION_COMMIT</b>
    Check the documentation of BAPI "BAPI_BUS2054_CREATE_MULTI " to see how these function modules work.
    Let me know if you need further information.
    Regards,
    RS

  • File Sharing Permissions Problem When NEW Files Created

    My wife & I have a home office network setup for our business, and are having trouble with shared files over the network. We're both on Macs, and all of our client files reside on an internal hard drive in my Mac Pro. I've set her up as a "Sharing Only" user on my computer (which matches the username & password of her account on her iMac), and have properly setup file sharing in both the System Preferences, and in the directory itself that we want shared. I've also applied the permissions to all files & folders below the main folder, and she can view, open and save whatever she needs and it works great.
    *Here's where the problem comes in...* If either of us create a NEW file or folder, the other person doesn't have WRITE access to it (we can browse and open it fine). The second I go to update a file she created, it won't let me over-write it, and I have to go into the permissions for that specific file and give myself Read/Write access. I've experimented with "Groups", and assigned both of us a special group, and applied that group access to that directory, but it doesn't make any difference when a NEW file or folder is created - it doesn't copy the parent directory permissions to itself, it makes one of us the owner, and nobody else has access.
    Is there any way around this? We're both constantly creating new files, and it really hampers our workflow to have to keep re-applying file permissions every time one of us creates something new. Ideally, any new files created within that main client folder would automatically have the same permissions as the parent directory. Any help would be greatly appreciated! Thanks!!

    Here's how to do this with Access Control Lists.
    1) Go to System Preferences -> Accounts. Unlock the padlock. Click the + button. Make a new group. Call this group "sharing" for the purposes of this exercise. Add the users you want to the group.
    2) Make a new empty folder in /Users/Shared. Call it "sharefolder".
    3) Log in to an admin account and paste all three of these lines at once into Terminal:
    sudo chmod +a "sharing allow delete,chown,list,search,add_file,\
    addsubdirectory,delete_child,file_inherit,directoryinherit" \
    /Users/Shared/sharefolder
    4) From now on, any files you create or copy to the sharefolder or to any of its subfolders will inherit read+write permission for all users in the group. If you have any existing files that you want to move into the sharefolder, a simple move by drag & drop won't cause the permissions to propagate. you need to hold down the option key while dragging them in. This will copy them over, ensuring that the ACL permission is properly inherited.
    One other caveat: Files created by a small number of OS X apps won't inherit the permissions properly if saved directly into the ACL folder hierarchy. TextEdit is one such app. Save TextEdit files in a temporary location first, and then copy them in. Then they will have the correct permissions.

  • Problem with printing files created by tcpdf class

    Hello,
    I have problem with printing pdf files created with tcpdf php class which contain embedded fonts
    http://www.tecnick.com/pagefiles/tcpdf/example_008.pdf
    Could someone try to print that example file at his Reader (printing to file .ps will be fine).
    I'm trying to determinate if problem is in my system (Ubuntu 8,04) in Reader or in class.
    Thanks in advance

    No problem with Adobe Reader 8 or 9 .

  • Problem with PDF files created by Indesign

    PDF files created by Adobe Indesign come up as blank pages whereas PDF files created by Mac OS X or Apple's Pages display OK. Is there a difference in the way PDF files are created?

    No problem with Adobe Reader 8 or 9 .

  • Problem opening PC files created on latest version of CS5 on Mac

    Hi.
    We´re a creative team in my company of four people, three mac users and one pc user. We recently all subscribed to the creative cloud so that we allways have the latest version of CS5, but there seems to be a problem with all files edited or created from the PC user.
    We've (mac users, all three) tried to open the files either created or edited by the PC user and we're told that this was created by a newer version and is not possible. Trying to understand why this message occure when all three macs where updated with creative cloud after the PC user.

    your title is confusing.
    the pc user is using cc 2014 apps, correct?
    the mac users are using cc 2014 apps, correct?
    if so, there should be no problem.
    if someone is using cs5 to try and open a file created by a cc 2014 app, you will see the problem you described.

  • Adobe reader problem on viewing PDF file created by crystal report

    I have a VB6 application to export the PDF file by using crystal report 9. However, when I viewed the PDF file under Adobe reader 8, I have a following message when I hit the page down key.
    "An error exists on this page. Acrobat may not display the page correctly.
    Please contact the person who created the PDF document to correct the problem."
    After hit okay, this message will be gone and I can see the PDF file without problem. However, I don't have this issue when using Adobe reader 5 or 6 version.
    If I crystal report 11 version to export the PDF, everything works fine also but our production machine can only use crystal report version 9, not 11.
    Anyone have idea?? Thx!

    Sounds as if there is a bug in the older version of Crystal reports.
    If you are prevented from installing fixes for bugs, you may well be
    stuck with the effect of the bug.
    Aandi Inston

  • InDesign CS5 causing problems with InCopy assignment file but not content files

    I'm having a strange InDesign/InCopy CS5 issue (Mac OSX 10.6.6; all system & Adobe updates are current).  In my InDesign doc I have one assignment file containing two content files. All of the InCopy pieces work fine in InDesign (i.e., I can check out/in, edit, etc.).  When I go to open the assignment file in InCopy, InCopy starts to open  it but then crashes. If I try to open each content file directly in  InCopy, no problem. I've tried deleting and recreating new assignments  in InDesign, but they all have the same result in InCopy.
    I think this actually is a problem with the InDesign file because if I export the InDesign file to IDML, then try to open the IDML file, InDesign crashes! I've trashed my InDesign preferences, made sure all cross-references are up to date, etc. Anybody have any ideas what else to look for in my InDesign file that might cause this problem?
    Thanks!
    Andrea

    Thanks John!
    1) Here are the first 10-ish lines from the crash report that is generated when I try to open the IDML file:
    Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
    0   ???                               0xa0c266f0 _XHNDL_trapback_instruction + 0
    1   com.adobe.InDesign.Indexing       0x20778192 GetPlugIn + 341394
    2   com.adobe.InDesign.Indexing       0x20779009 GetPlugIn + 345097
    3   PublicLib.dylib                   0x0129228b CScriptProvider::AccessProperties(IScriptRequestData*, IScript*) + 571
    4   com.adobe.InDesign.Scripting      0x1f4befe8 GetPlugIn + 166440
    5   com.adobe.InDesign.Scripting      0x1f4c2e31 GetPlugIn + 182385
    6   com.adobe.InDesign.INXCore        0x20641444 GetPlugIn + 45220
    7   PublicLib.dylib                   0x0142c9e8 CScriptDOMElement::GetMultipleAttributes(K2Vector<IDType<ScriptID_tag>, K2Allocator<IDType<ScriptID_tag> > > const&, adobe::version_1::vector<KeyValuePair<IDType<ScriptID_tag>, DOMAttributeValue>, adobe::version_1::capture_allocator<KeyValuePair<IDType<ScriptID_tag>, DOMAttributeValue> > >&) + 280
    8   PublicLib.dylib                   0x0142bd38 CScriptDOMElement::InsertProperties(adobe::version_1::vector<KeyValuePair<IDType<ScriptID _tag>, ScriptData>, adobe::version_1::capture_allocator<KeyValuePair<IDType<ScriptID_tag>, ScriptData> > >&, adobe::version_1::vector<KeyValuePair<IDType<ScriptID_tag>, DOMAttributeValue>, adobe::version_1::capture_allocator<KeyValuePair<IDType<ScriptID_tag>, DOMAttributeValue> > > const&, short, short) + 1336
    9   PublicLib.dylib                   0x0142beab CScriptDOMElement::SetSimpleAttributes(adobe::version_1::vector<KeyValuePair<IDType<Scrip tID_tag>, DOMAttributeValue>, adobe::version_1::capture_allocator<KeyValuePair<IDType<ScriptID_tag>, DOMAttributeValue> > > const&, short) + 91
    10  PublicLib.dylib                   0x0142c0d3 CScriptDOMElement::SetAttributes(adobe::version_1::vector<KeyValuePair<IDType<ScriptID_ta g>, DOMAttributeValue>, adobe::version_1::capture_allocator<KeyValuePair<IDType<ScriptID_tag>, DOMAttributeValue> > > const&) + 51
    11  PublicLib.dylib                   0x0142a2ea CScriptDOMElement::SetAttribute(IDType<ScriptID_tag>, DOMAttributeValue const&) + 202
    2) That works. Moved all pages (frame threading was preserved) to a new doc, exported to IDML, opened new IDML file just fine. Woo hoo! One of my editors won't be pleased that all of the tracked changes have disappeared, but at least the file functions now
    Wish I knew what caused the problem in the first place so we could (hopefully) prevent this from happening again. Any ideas?
    Thanks again for your help!
    Cheers,
    Andrea

  • I am trying to find out how to assign files with particular extensions to the appropriate software. At the moment when I create a file using Word it is apparently given the extension .docx but Word doesn't recognise its own files. How do I alocate th

    I am trying to find out how to assign files with particular extensions to the appropriate software. At the moment when I create a file using Word it is apparently given the extension .docx but Word doesn't recognise its own files. How do I allocate the extension .docx to Word? There used to be a way of doing it, I think under "Preferences" but I can't seem to find it.

    Still in the same location:
    File > Get Info > Open with (select) > Change All (button)

  • Hi Experts..i have a problem regarding BAPI at the time of creating the structure.

    When i create the structure for particular field it will display the message "Field name VBELN does not agree with proposed name SD_DOC for BAPI table".
    Kindly help me.
    Regards,
    Abhishek K.

    Hello Raymond,
    I had problem of creating structure for BAPI Now it is Solved .
    And Yes i have created RFC Function Module.
    But i get some problem during Activation.
    Could you help me on this?
    Code:->
    FUNCTION ZBAPI_DEMO_SD.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(FM_VBELN) TYPE  VBAP-VBELN
    *"  EXPORTING
    *"     VALUE(RETURN) TYPE  BAPIRETURN
    *"  TABLES
    *"      ZITEMDATA STRUCTURE ZBAPI_TABLE OPTIONAL
      SELECT POSNR
             MATNR
             MATKL
             PSTYV
             MEINS FROM VBAP INTO TABLE ZITEMDATA
        WHERE VBELN = FM_VBELN.
    ENDFUNCTION.
    Error: ->"Report/Program statement Missing or Program type is I (Include)".
    Regards,
    Abhishek K.

  • Problems opening .pdf files created in Windows in MAC

    My clients that are using Macs are having problems opening password protected PDFs that I created in Windows. Any suggestions?

    Are your clients using Adobe Reader on Mac, or the built-in Mac OS Preview?  Preview does NOT support the full PDF standard :(.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Mon, 26 Sep 2011 15:04:18 -0700
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: Problems opening .pdf files created in Windows in MAC
    Problems opening .pdf files created in Windows in MAC
    created by Hollcy<http://forums.adobe.com/people/Hollcy> in PDF Language and Specifications - View the full discussion<http://forums.adobe.com/message/3939175#3939175

Maybe you are looking for

  • How to get the table of cost elements data?

    Dear friends, I want ot get the Chart_of_Accounts, Cost_Element, Short_Text into an internal table, but how can I find the related tables in SAP system? Thanks a lot!

  • Web services Problem in SOA suite 10.1.3

    HI every body , I have particular web service which opens fine with 10.1.3 jdeveloper using the partener but when I try to deploy the application with that particular webservice I get this error BUILD FAILED D:\downloads\jdevstudio10131\jdev\mywork\K

  • Connection of Home Theater Recei

    For my Home Theater I would like to use my PC a DVD player, music player, and for gaming on my Infocus Projector. I am trying to figure out what Sound Card will be sufficient and how it will actually connect to my Recei'ver (Yamaha HTR-5830SL 550W 5.

  • How do I repair a damaged song on the IPhone?

    I have a song that only plays 1/2 of the lyrics and then stops. It appears that the song is damaged and didn't download correctly since I can play the song with no problems from the laptop. How can I re-sync this one song? I need toi first erase it f

  • TS4006 Why can't I "Find My iPhone"?!

    "Find My iPhone" is turned on and connected to my iCloud account. My Location Services are also switched on. I've compared the settings on my iPhone with my iPad. "Find my iPhone" can find my iPad, but not my iPhone, so I'm completely stumped. The ph