SparkCheckBoxDataGrid: What are the reasons it might stay stuck in the corner?

This has to do with Alex Harui's "SparkCheckBoxDataGrid"
I've changed the example I'm studying to a WindowedApplication.
If I enter x,y values to move it away from the edge, it doesn't take.
If I try dragging, it snaps back to the corner. Also, there's a dashed red line that appears temporarily.
Is it itemrenderers causing this?
Also, I was hoping I could move the checkbox into an in-line(?) borderContainer in order to (hopefully) center it, however, the nested tags becomes an issue that I don't understand how to deal with.
Thanks
Kristin

Hi
Well, yes, the datagrid was stuck in the upper left corner, which was annoying to me.
I changed it to WindowedApplication so I could test loading my own sqlite data. I deleted everything out of your code related to dragging items as well. Too much confusion there.
My substitutions work just fine, just can't relocate the grid. I have begun to think the file is corrupt now.
I have another simple question. Can you please expain this line to me:     owner.addEventListener("selectionChange", selectionChangeHandler);
I think 'owner' refers back to the datagrid. The datagrid is the owner of the itemRenderer (?). But I don't understand the use of the custom event. I've never seen that structure (an unofficial Flex event)  and I can't follow it back to it's origin in your code to understand it's workings.
Thanks
Kristin

Similar Messages

  • HT201210 My iphone 4s failed to update. What are some reasons why this might happen?

    My IPhone 4S failed to update. Anyone know what are some reasons this might have happened?

    Download and save firmware from here
    iPhone4,1_6.1.3_10B329_Restore.ipsw
    Connect iPhone in iTunes. Option+Restore (Mac) Shift+Restore (PC) pointing to saved .IPSW file.

  • Hi i have  an iphone 4 which is from canada nd i have seen one sim inside it which is a canadian sim ,iam staying in india so can i use that phone in india and please tell me what are the steps ihave to take for using that canadian phone in india

    hi i have  an iphone 4 which is from canada nd i have seen one sim inside it which is a canadian sim ,iam staying in india so can i use that phone in india and please tell me what are the steps ihave to take for using that canadian phone in india

    Only the carrier to whom the device is locked can authorize it's unlocking.  Contact the carrier to see if they offer unlocking and if you qualify.

  • What are the possible reasons why I cannot reactivate using my AppleID, even though I already change its password with the help of Apple personel

    What are the possible reasons why I cannot reactivate my Iphone5 using my AppleID, even though I already change its password with the help Apple personel

    If the password for your Apple ID works at id.apple.com > Manage Apple ID, then it's likely that the Apple ID the device wants you use is not the same as the Apple ID you are using.
    Exactly what screen are you at on your iPhone?  It sounds like it is in Activation Lock.

  • What are the various reasons that result in locking an user login id .....

    what are the various reasons that result in locking an user , for development server?

    Hi,
    Basic reason behind the locking user id is incorrect logons.
    Goto Tcode : S_BCE_68001402 .
    You can find the exact number of incorrect logons and reason.
    regards,
    Raju

  • What are the possible reasons why this R3 info not getting to BW?

    Hi,
    I have data coming into BW from R3 a datasource DataSorce1; When it gets to BW, SalesOrg numbers 22941 and 22942 comes to BW without problem but 22943 which is a new config. In the R3 master data does not get to BW.
    1. What are the possible ways to troubleshoot this?
    2. How can I confirm that the data shows in R3: i.e. showing my SalesOrg 22941 and 22942 in R3, and also confirm that 22943 truly exists in R3.
    3. How do I confirm that 22943 did not get to BW (if it exists in R3)?
    4. What if this is some custom program bringing 22941 and 222942 to BW? How do I see the program name and track down why the third one is not getting to BW?
    Please provide the necessary to tcode in all the discussions
    Thanks

    1. 1st thing... If there is no Sales againest Sales Organization. you won't see in Cubes if it is part of Transactional Data. <u>Load New Sales Organization Texts</u>.
    1.  If it is new Sales Organization as Navigation Attribute only(Assume for Sales Order), try activate your master data for Sales Order. check in your Sales Organizatio IO Master Data and Sales Order Master Data
    2. If it is Part of Transactional Data, Check in your RSA3, PSA.
    How to check in RSA3?: If you are usng 2LIS_11_VAHDR. goto se16, provide VBAK table, press enter. in the Select for Sales Organization. Put 22943. Provide Order type Standard Order. and Execute. Take any Order Number from output list.
    Goto RSA3, provide your choosen sales order in the RSA3 selection in Sales Order field Execute it.
    If you are able to find this Sales Order in Both RSA3 and PSA. You are getting Data for 22943 Sales Organization.
    case 1: If you are able to see Choosen Sales Order in RSA3, not in PSA. check User Exit Code.
    case 2 : If you are able to see Choosen Sales in PSA and Not in Targets. check all transformation.
    Are you working with Standard DS(2LIS_11_) or Custom Datasource(Z)?
    Nagesh Ganisetti.
    Assign points if it helps.

  • IPhone 3G - thinking of getting one but... what are the potential issues?

    I'm thinking of getting an iPhone 3G because:
    1. I've been writing iPhone apps with a friend of mine (already have two in the app store) and I think I'm probably the only iPhone developer in the world who doesn't actually own an iPhone himself. My friend and partner in this venture has worked extra time doing actual testing on her original iPhone (and we've had other beta testers too), but there is only so much I can do in the simulator. I can't develop multi-touch or accelerometer features without my own device. And I feel I shouldn't put the entire hardware testing burden on her.
    2. I like the iPhone browser and the ability to use apps and a lot of other aspects of the iPhone.
    3. I live in Japan, and switching from my AU cell phone to the iPhone is actually a bargain here. There is no money down, and the payment plans start at like $25/month to a max of about $68/month. So it's actually cheaper here than in the U.S. Even adding in the $10-$15 extra charge for 24 months until the phone itself is paid off, it's no more expensive than my current cell phone. And I can keep my current phone number.
    So it would seem to be a no-brainer. I should just walk over to my nearest Softbank store and get one, right?
    The only thing holding me back is this - every time (and I mean every single time with no exaggeration) that I have ever purchased an Apple portable device, including every single one of my many MacBooks and MacBook Pros over the years and the iPod nano 3G I bought last year, have had problems that needed immediate care and replacement or servicing and, in the case of the iPod 3G that awful "tilted LCD" problem that after 3 exchanges I had to have the consumer affairs office in Tokyo arrange with Apple for me to get a refund on.
    I love the systems, I am using my MacBook Pro right now as I write this message (already been repaired twice and the trackpad is acting funny again - glad I have AppleCare), but I dread the mental stress of dealing with getting my new out-of-the-box Apple products fixed. I feel they have quality checking problems with certain of the product lines.
    I just know that there is going to be something really annoyingly wrong with the iPhone 3G as soon as I turn it on - like obviously dead pixels, or a tilted LCD like with the iPod nano 3G, or some weird color discolorations, or something loose and jiggly like with my MBP battery cover or ... I don't know... something. It's just happened too often with me to not be wary.
    So my question is this. If the Softbank store lets me turn on and check out the iPhone before buying it, what are the things I should look out for?
    Are there common, well-known issues with the iPhone 3G that I can check for, similar to the tilted screen issue on the iPod nano 3G?
    Any suggestions would be welcome.
    I would like to get an iPhone. I just want one with no problems out-of-the-box.
    Thanks for any suggestions,
    doug
    Message was edited by: Doug Lerner2

    {quote:title=Doug Lerner2 wrote:}
    But if it is something more subtle like "the colors seem wrong" or "the screen is not set straight" it will take more arguing. And I can't stand arguing about stuff like that just to get a good phone.
    So... What were the problems you had with your phone?
    Well the only reason I got the IPhones was because it was a birthday gift,And the first phone I got was the 16G in white so when we got home My screen was jumping so I said okay maybe if I power my phone off and than cut it back on maybe it will started to work a little better,While it didn't I just made thing worse My screen was only jumping it wouldn't come back on after that,So I was so mad cause we had to drive a 138 miles to get my phone and than my cousin came over and she have the same phone I had just got.But her phone look like she had it for some years the white on the back of the phone had turned a off white.
    So we had to drive other 138 miles there and back for me to get other phone and when I made it to the Apple store I didn't know you suppose to call and make appt before you come up there about your phone.So I'm standing up there telling them that I just came yesterday and drove a 138 miles here and back and I just had to turn around and do it again today.So they went on and seen me and ask me what was going on with my phone.So I told them as they can see it was not coming on no more.
    So they exchange my IPhone and I didn't get the same color due to how my cousin white IPhone was looking like,So I got a black IPhone instead.
    So the new phone I got was working so good and than about two weeks later my phone would blink on and off and it would freeze on you during call's are anything.So you already know what I had to do again I had to drive other 138 miles there and back and I was not happy about that at all.So this time before I went I made appt that morning to come and they told me to come around 200pm but for me to try to be there at least ten minutes early.So I made it there around 145pm they didn't get to me still around 315pm.So when they final call me to go talk to someone about what's going on with my phone.They ask me for my receipt and I let them know I didn't have it cause they didn't give it to me cause yale told me I didn't need it cause yale was going to send it to my email address.
    So they went to try to look up my email address,That took them other 30 minutes to find it,But they finial found it in there system.So they went on and exchange my phone again with no problem at all.
    So this phone I got was doing so good, I really thought my trouble was all over still I saw a black line running down my screen of my phone.So I had to get on the phone with apple again so I can make other appt for the 3rd time,So I can go up there and bring this phone so they can look at it,Cause I thought maybe I was seening something are it suppose to be on my phone and I didn't know,But to come to find out it didn't suppose to be on my phone so they had to replaces my phone for the 3rd time.
    So I bent haveing this phone That I got now about 3 months now and I got to tell you I went through **** and back to get this phone and it's really doing good really love the phone so much I'm so glade that I didn't give up on this phone because I was haveing so much bad luck with getting a IPhone I was about to give up but I am so glade that I kept trying.It really is a great phone to have it have so much on this phone I love it.I just hope I don't have no more problem down the line cause I don't want to go through this again.
    I feel were you are coming from cause I wouldn't want nobody to go through what I went through try to getting my phone.
    But I'M telling you,it might be worth you going through this at the end..The TV on this phone is so unbelievable I'M telling you,you going to love it.Before I go to sleep at night I listen to my i pod on my IPhone and I love it that's how I go to sleep at night are I might watch a movie that I have on my phone at night.It's a great phone to have all the way around I give it a ten.
    And other thing you said you don't like to arguing sometime you just have to do that.you and me have so much in common cause I don't like that my self,I feel like why should I have to raise my voices to get my point a cross that's just crazy to me.
    So how long do yale have to exchange something were you stay.

  • What are the logical decisions to make a plant

    Dear All,
    i know that i am going to ask a very basic question but it is not as simple as seems to be.
    Scenario is as undermentioned:
    At one premises there is a production unit for cement manufacturing and another unit for power generation. i have made cement plant now please tell me eighter we should make power generation plant or we can handle it under the same cement plant.
    Requirement for power generation are that they have to produce power for cement plant and also they sell power to Gowernment. please guide me why we make plant and on the bais of what factors we decide plant.what r the technical reasons to make a plant. what are the requirements which are fulfilled if we make power generation as a plant and what r the requirements which are not fulfilled if we dont make it as a plant. 
    please guide me the basic factors on the basis of which we decide plant.  in detail

    Hi,
    You might be knowing that, a Plant is a place where production of goods, services are done and provided to external parties.
    As you are generating cement from one plant and power from another plant and selling both the product. So, you have to capture the cost and profit for both and you create two different plant.
    Now you come to conclusion, if you don't create two plants what will happen? It's self explanatory.
    Madhava

  • What are the Relations between Journalizing and IKM?

    What is the best method to use in the following scenario:
    I have about 20 source tables with large amount of data.
    I need to create interfaces that join the source tables into target tables.
    The source tables are inserted every few secondes with about hundreds to thousands rows.
    There can be a gap of few seconds between the insert of different tables that sould be joined.
    The source and target tables are on the same Oracle instance and schema.
    I want to understand the role of: 'Journalizing CDC' and 'IKM - Incremental Update' and
    how can i use it in my scenario?
    In general What are the relations between 'Journalizing' and 'IKM'?
    Should i use both of them? Or maybe it is better to deelte and insert to the target tables?
    I want to understand what is the role of 'Journalizing CDC'?
    Can 'IKM - Incremental Update' work without 'Journalizing'?
    Does 'Journalizing' need to have PK on the tables?
    What should i do if i can't put PK (there can be multiple identical rows)?
    Thanks in advance Yael

    Hi Yael,
    I will try and answer as many of your points as I can in one post :-)
    Journalizing is way of tracking only changed data in your source system, if your source tables had a date_modified you could always use this as a filter when scanning for changes rather than CDC, Log based CDC (Asynchronous in ODI, Logminer/Streams or Goldengate for example) removes the overhead of of placing a trigger on the source table to track changes but be aware that it doesnt fully remove the need to scan the source tables, in answer to you question about Primary keys, Oracle CDC with ODI will create an unconditional log group on the columns that you have defined in ODI as your PK, the PK columns are tracked by the database and presented in a Journal table (J$<source_table_name>) this Journal table is joined back to source table via a journalizing view (JV$<source_table_name>) to get the rest of the row (ie none PK columns) - So be aware that when ODI comes around to get all data in the Journalizing view (ie Inserts, Updates and Deletes) the source database performs a join back to the source table. You can negate this by specifying ALL source table columns in your PK in ODI - This forces all columns into the unconditional log group, the journal table etc. - You will need to tweak the JKM to then change the syntax sent to the database when starting the journal - I have done this in the past, using a flexfield in the datastore to toggle 'Full Column' / 'Primary Key Cols' to go into the JKM set up (there are a few Ebusiness suite tables with no primary key so we had to do this) - The only problem with this approach is that with no PK , you need to make sure you only get the 'last' update and in the right order to apply to your target tables, without so , you might process the update before the insert for example, and be out of sync.
    So JKM's provide a mechanism for 'Change data only' to be provided to ODI, if you want to handle deletes in your source table CDC is usefull (otherwise you dont capture the delete with a normal LKM / IKM set up)
    IKM Incremental update can be used with or without JKM's, its for integrating data into your target table, typically it will do a NOT EXISTS or a Minus when loading the integration table (I$<target_table_name>) to ensure you only get 'Changed' rows on the load into the target.
    user604062 wrote:
    I want to understand the role of: 'Journalizing CDC' and 'IKM - Incremental Update' and
    how can i use it in my scenario?Hopefully I have explained it above, its the type of thing you really need to play around with, and throroughly review the operator logs to see what is actually going on (I think this is a very good guide to setting it up : http://soainfrastructure.blogspot.ie/2009/02/setting-up-oracle-data-integrator-odi.html)
    In general What are the relations between 'Journalizing' and 'IKM'?JKM simply presents (only) changed data to ODI, it removes the need for you to decide 'how' to get the updates and removes the need for costly scans on the source table (full source to target table comparisons, scanning for updates based on last update date etc)
    Should i use both of them? Or maybe it is better to deelte and insert to the target tables?Delete and insert into target is fine , but ask yourself how do you identify which rows to process, inserts and updates are generally OK , to spot a delete you need to compare the table in full, target table minus source table = deleted rows , do you want to copy the whole source table every time to perform this ? Are they in the same database ?
    I want to understand what is the role of 'Journalizing CDC'?Its the ODI mechanism for configuring, starting, stopping the change data capture process in the source systems , there are different KM's for seperate technologies and a few to choose for Oracle (Triggers (Synchronous), Streams / Logminer (Asynchronous), Goldengate etc)
    Can 'IKM - Incremental Update' work without 'Journalizing'?Yes of course, Without CDC your process would look something like :
    Source target ----< LKM >---- Collection table (C$) ----<IKM>---- Integration table (I$) -----< IKM >---- Target table
    With CDC your process looks like :
    Source Journal (J$ table with JV$ view) ----< LKM >---- Collection table (C$) ----<IKM>---- Integration table (I$) -----< IKM >---- Target table
    as you can see its the same process after the source table (there is an option in the interface to enable the J$ source , the IKM step changes with CDC as you can use 'Synchronise Journal Deletes'
    Does 'Journalizing' need to have PK on the tables?Yes - at least a logical PK in the datastore, see my reply at the top for reasons why (Log Groups, joining back the J$ table to the source table etc)
    What should i do if i can't put PK (there can be multiple identical rows)? Either talk to the source system people about adding one, or be prepared to change the JKM (and maybe LKM, IKM's) , you can try putting all columns in the PK in ODI. Ask yourself this , if you have 10 identical rows in your source and target tables, and one row gets updated - how can you identify which row in the target table to update ?
    >
    Thanks in advance YaelA lot to take in, as I advised I would reccomend you get a little test area set up and also read the Oracle database documentation on CDC as it covers a lot of the theory that ODI is simply implementing.
    Hope this helps!
    Alastair

  • What are the terms of a two year contract?

    I am trying to get information for my mother so she can start me on a plan, and I wanted to know a few things. When on a two year contract do you get charged fee's if you don't pay your bill right away? Or does your phone just turn off and stays off until you can pay your bill?
    I also wanted to know how you pay a two year contract bill. Is it like $50 dollars a month? What are the rates?
    Thank you for your help and time

    The late fee is $5.  No your phone won't get cut off right away. If you do it too many times it might. Why are you already thinking about not paying a bill BEFORE you even have service?
    HOW do you pay? You can mail the payment in, pay it online, pay it pay phone or go to a Verizon store.
    $50 a month? HA! Your cost will depend on what you want.
    If you wan to know the rates go the the home page of the site.
    http://www.verizonwireless.com/b2c/store/controller?&item=planFirst&action=viewPlanOverview

  • What are the advantages and disadvantages of suppressed and unsuppressed content in indesign layer option?

    what are the advantages and disadvantages of suppressed and unsuppressed content in indesign layer option?

    I occasionally use layers set to suppress output for holding text that differs from the text in the visible part of a document that I need for variables or TOC entries sometimes, or for notes or guides I want in the file but I don't want printed. You might also want to suppress a layer with some sort of overlay, like the die-lines for a die-cut piece, when you export a PDF for screen viewing.
    I'm sure you can come up with other reasons for having content on a page in the layout, but not in the final output.

  • What are the different values available for type attribute

    Hi,
        I am working with IDOC to Stored Procedure. For each field we need to give the values for 'isInput' and 'type' attributes. I need to pass values for 'datetime' and 'numeric' fields. What are the list of values availabIe for 'type' attribute. I know only about 'CHAR' attribute.
         Can anybody please tell me what all the values availabe for attribute 'type'. I am facing this problem while giving the value for type attribute.
    Thanks in Advance,
    Murthy.

    Does this help
    tring
        Data that contains a combination of letters, numbers, and special characters. String data types are listed below:
    CHARACTER: Fixed-length character strings. The common short name for this data type is CHAR.
    VARCHAR: Varying-length character strings.
    CLOB: Varying-length character large object strings, typically used when a character string might exceed the limits of the VARCHAR data type.
    GRAPHIC: Fixed-length graphic strings that contain double-byte characters.
    VARGRAPHIC: Varying-length graphic strings that contain double-byte characters.
    DBCLOB: Varying-length strings of double-byte characters in a large object.
    |BINARY: A sequence of bytes that is not associated with a |code page.
    |VARBINARY: Varying-length binary strings.
    BLOB: Varying-length binary strings in a large object.
    |XML: Varying-length string that is an internal representation |of XML.
    Numeric
        Data that contains digits. Numeric data types are listed below:
    SMALLINT: for small integers.
    |INTEGER: for large integers.
    |BIGINT: for bigger values.
    DECIMAL(p,s) or NUMERIC(p,s), where p is precision and s is scale: for packed decimal numbers with precision p and scale s. Precision is the total number of digits, and scale is the number of digits to the right of the decimal point.
    |DECFLOAT: for decimal floating-point numbers.
    REAL: for single-precision floating-point numbers.
    DOUBLE: for double-precision floating-point numbers.
    Datetime
        Data values that represent dates, times, or timestamps. Datetime data types are listed below:
    DATE: Dates with a three-part value that represents a year, month, and day.
    TIME: Times with a three-part value that represents a time of day in hours, minutes, and seconds.
    TIMESTAMP: Timestamps with a seven-part value that represents a date and time by year, month, day, hour, minute, second, and microsecond.
    Regards
    Ravi

  • What are the ideal specs for a DigiBeta master tape when authoring a "widescreen anamorphic" 16:9 SD DVD (original aspect ratio is 14:9)?

    I just received the masters for a new SD DVD. I would like to author a "widescreen anamorphic" SD DVD horizontally squeezed widescreen image stored in a standard 4:3 aspect ratio DVD image frame. (On 4:3 displays, mattes should preserve the original aspect ratio. On 16:9 displays the image will fill the screen at the highest possible resolution.)
    Below I've listed the specs of the Digi Beta master tapes the producers have sent to me for digitizing. I'd like to know this: What are the ideal specs for a DigiBeta master tape when authoring a widescreen anamorphic SD DVD, using material with an original aspect ratio of 14:9?
    I've also listed my guesses below. Please let me know if my guesses are right. If not, please suggest alternatives (and if possible explain why.)
    TECHNICAL SPECIFICATIONS OF EXISTING MASTER:
    Tape: DigiBeta
    Original Aspect Ratio: 1.55 (14:9)
    Vid Rate: 29.97 fps
    Pixel Aspect: NTSC - CCIR 601
    Frame Size: 720 x 480
    Anamorphic: Full-Height Anamorphic (16:9 image displayed in letterboxed, non-distored 4:3)
    Display Format: 4:3 Letterbox
    MY GUESS AT IDEAL TECHNICAL SPECIFICATIONS (for a DigiBeta, that is):
    Tape: DigiBeta
    Original Aspect Ratio: 1.55 (14:9)
    Vid Rate: 29.97 fps
    Pixel Aspect: Square
    Frame Size: 720 x 540
    Anamorphic: YES
    Display Format: 16:9 Anamorphic (horizontally squeezed widescreen image)
    Please feel free to ask for clarification or further information you need to answer my question.
    Thank you so much in advance for your help!
    Best, Noetical.
    BTW, I can't wait for the day when everything has gone digital and we get digital intermediates instead of tapes to digitize!

    Hi Nick...thanks for taking the time to reply to my question.
    Nick Holmes wrote:
    What you have there is a mess.
    NTSC pixels are never square.
    NTSC is 720x486, even when it is Anamorphic.
    You shouldn't be using an already letterboxed master to make an Anamorphic version. Get the master that was made before the letterboxing stage.
    When you make an Anamorphic DVD it should display as 16:9 full screen automatically on widescreen TVs.
    The same DVD will automatically letterbox on 4:3 TVs.
    Um yeah...duh. That's exactly what I was trying to explain in the preface of my question. I'm sorry if I didn't make it clear...all these things you mention are the reasons I'm putting together a list of the technical specs of the DigiBeta I need so I can have them send that instead of the stupid letterboxed version. 
    Look, I'm sending this request to some intern at their offices in England, asking for a master with which I can make an Anamorphic DVD. They already sent me this master, which as you and I both agree is an idiotic asset to use for these purposes. As such, I was hoping for advice on a more precise way of requesting the master that I need than asking for "the master that was made before the letterboxing stage." Upon reflection, perhaps I'll just do that. If you or anyone else has a suggestion about something I should add to my request that would improve the odds of them sending the tape I need, please repond. Thank you!
    BTW, It's been a long time since anyone has responded to something I've written or said as though I'm an idiot. I remember now that I don't really like it. (Moving along...)

  • What are the New Features in Apex 3.1.2 as Comparitive with Apex 3.1

    hi all
    what are the new features in Apex 3.1.2 as compartively with Apex 3.1?
    Is it recommended to use 3.12 comparitivly 3.1?
    please drop ur valuable answers
    many thanks
    khaja
    Edited by: ATM on Dec 27, 2008 1:06 PM
    Edited by: ATM on Dec 27, 2008 1:11 PM
    Edited by: khaja on Jan 18, 2009 10:47 AM

    Hello,
    Versions 3.1.1 and 3.1.2 are actually patched version of APEX 3.1. As such, they don’t introduce new features, but mainly fix bugs from the main release. If you want to learn specific details about these versions, you should read the readme file attached to the patch set files (on metalink).
    It’s always best to work with the latest patched version, as it reduces your chances to encounter bugs. In general, so far the new APEX versions added many new features and technologies, while maintaining backward compatibility, so existing applications functionality is not impaired. Personally, I don’t see any reason not to upgrade and use the latest version, certainly when you are comparing 3.1 to 3.1.2.
    Regards,
    Arie.

  • Can any one say What are the mandatory parameters in BAPI_GOODSMVT_CREATE

    Hi,
    Can any one say What are the mandatory parameters in
    BAPI_GOODSMVT_CREATE.
    Helpful answer will be rewarded.

    Hi,
    The following is an abap program making used of the BAPI function BAPI_GOODSMVT_CREATE to do Goods Receipts for Purchase Order after importing the data from an external system.
    BAPI TO Upload Inventory Data
    GMCODE Table T158G - 01 - MB01 - Goods Receipts for Purchase Order
                         02 - MB31 - Goods Receipts for Prod Order
                         03 - MB1A - Goods Issue
                         04 - MB1B - Transfer Posting
                         05 - MB1C - Enter Other Goods Receipt
                         06 - MB11
    Domain: KZBEW - Movement Indicator
         Goods movement w/o reference
    B - Goods movement for purchase order
    F - Goods movement for production order
    L - Goods movement for delivery note
    K - Goods movement for kanban requirement (WM - internal only)
    O - Subsequent adjustment of "material-provided" consumption
    W - Subsequent adjustment of proportion/product unit material
    report zbapi_goodsmovement.
    parameters: p-file like rlgrap-filename default
                                     'c:\sapdata\TEST.txt'.
    parameters: e-file like rlgrap-filename default
                                     'c:\sapdata\gdsmvterror.txt'.
    parameters: xpost like sy-datum default sy-datum.
    data: begin of gmhead.
            include structure bapi2017_gm_head_01.
    data: end of gmhead.
    data: begin of gmcode.
            include structure bapi2017_gm_code.
    data: end of gmcode.
    data: begin of mthead.
            include structure bapi2017_gm_head_ret.
    data: end of mthead.
    data: begin of itab occurs 100.
            include structure bapi2017_gm_item_create.
    data: end of itab.
    data: begin of errmsg occurs 10.
            include structure bapiret2.
    data: end of errmsg.
    data: wmenge like iseg-menge,
          errflag.
    data: begin of pcitab occurs 100,
            ext_doc(10),           "External Document Number
            mvt_type(3),           "Movement Type
            doc_date(8),           "Document Date
            post_date(8),          "Posting Date
            plant(4),              "Plant
            material(18),          "Material Number
            qty(13),               "Quantity
            recv_loc(4),           "Receiving Location
            issue_loc(4),          "Issuing Location
            pur_doc(10),           "Purchase Document No
            po_item(3),            "Purchase Document Item No
            del_no(10),            "Delivery Purchase Order Number
            del_item(3),           "Delivery Item
            prod_doc(10),          "Production Document No
            scrap_reason(10),      "Scrap Reason
            upd_sta(1),            "Update Status
          end of pcitab.
    call function 'WS_UPLOAD'
      exporting
        filename                      = p-file
        filetype                      = 'DAT'
    IMPORTING
      FILELENGTH                    =
      tables
        data_tab                      = pcitab
    EXCEPTIONS
      FILE_OPEN_ERROR               = 1
      FILE_READ_ERROR               = 2
      NO_BATCH                      = 3
      GUI_REFUSE_FILETRANSFER       = 4
      INVALID_TYPE                  = 5
      OTHERS                        = 6
    if sy-subrc <> 0.
      message id sy-msgid type sy-msgty number sy-msgno
              with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      exit.
    endif.
    gmhead-pstng_date = sy-datum.
    gmhead-doc_date = sy-datum.
    gmhead-pr_uname = sy-uname.
    gmcode-gm_code = '01'.   "01 - MB01 - Goods Receipts for Purchase Order
    loop at pcitab.
      itab-move_type  = pcitab-mvt_type.
      itab-mvt_ind    = 'B'.
      itab-plant      = pcitab-plant.
      itab-material   = pcitab-material.
      itab-entry_qnt  = pcitab-qty.
      itab-move_stloc = pcitab-recv_loc.
      itab-stge_loc   = pcitab-issue_loc.
      itab-po_number  = pcitab-pur_doc.
      itab-po_item    = pcitab-po_item.
      concatenate pcitab-del_no pcitab-del_item into itab-item_text.
      itab-move_reas  = pcitab-scrap_reason.
      append itab.
    endloop.
    loop at itab.
      write:/ itab-material, itab-plant, itab-stge_loc,
              itab-move_type, itab-entry_qnt, itab-entry_uom,
              itab-entry_uom_iso, itab-po_number, itab-po_item,
                                                  pcitab-ext_doc.
    endloop.
    call function 'BAPI_GOODSMVT_CREATE'
      exporting
        goodsmvt_header             = gmhead
        goodsmvt_code               = gmcode
      TESTRUN                     = ' '
    IMPORTING
        goodsmvt_headret            = mthead
      MATERIALDOCUMENT            =
      MATDOCUMENTYEAR             =
      tables
        goodsmvt_item               = itab
      GOODSMVT_SERIALNUMBER       =
        return                      = errmsg
    clear errflag.
    loop at errmsg.
      if errmsg-type eq 'E'.
        write:/'Error in function', errmsg-message.
        errflag = 'X'.
      else.
        write:/ errmsg-message.
      endif.
    endloop.
    if errflag is initial.
      commit work and wait.
      if sy-subrc ne 0.
        write:/ 'Error in updating'.
        exit.
      else.
        write:/ mthead-mat_doc, mthead-doc_year.
        perform upd_sta.
      endif.
    endif.
          FORM UPD_STA                                                  *
    form upd_sta.
      loop at pcitab.
        pcitab-upd_sta = 'X'.
        modify pcitab.
      endloop.
      call function 'WS_DOWNLOAD'
        exporting
          filename                      = p-file
          filetype                      = 'DAT'
    IMPORTING
      FILELENGTH                    =
        tables
          data_tab                      = pcitab
    EXCEPTIONS
      FILE_OPEN_ERROR               = 1
      FILE_READ_ERROR               = 2
      NO_BATCH                      = 3
      GUI_REFUSE_FILETRANSFER       = 4
      INVALID_TYPE                  = 5
      OTHERS                        = 6
    endform.
    *--- End of Program
    Reward for useful answers.
    Regards,
    Raj.

Maybe you are looking for