BAPI_GOODSMVT_CREATE - position within material

Hi guys,
i use the function BAPI_GOODSMVT_CREATE for gm_code = '05'.
i fill the fields:
on header level:
    bapigmhead-pstng_date = ls_post_date-pstng_date.
    bapigmhead-doc_date = ls_post_date-pstng_date.
    bapigmcode = '05'.
and then on item level:
      ls_bapiitem-material = ls_items-material.
      ls_bapiitem-plant = ls_items-plant.
      ls_bapiitem-stge_loc = ls_items-stock.
      ls_bapiitem-move_type = ls_items-move_type.
      ls_bapiitem-entry_qnt = ls_items-quantity.
      ls_bapiitem-amount_lc = ls_items-value.
      ls_bapiitem-orderid = l_orderid. "l_orderid is the same for all items
my question is:
how do i get the position in material document for every item?
thanks,
emilia

Hi Emilia-Maria ,
If your process success finished, you get export parameters (MATERIALDOCUMENT, MATDOCUMENTYEAR) from bapi
and then write select statement for mkpf (for header) , mseg (for detail) tables with export parameters (MATERIALDOCUMENT, MATDOCUMENTYEAR).
Best regards.

Similar Messages

  • Create single TO for each position of material in purchase order

    Hi, I am facing a problem while recieving stock from GR mvt 101
    I'm following this steps
    1.- I'm creating a purchase order with several materials (The number of material
    is diferent for each material)
    2.- Good Receipt with MIGO,I'm using movement type 101, this was configurated for
    create automatic TR and TO
    3.- while I'm traying to create a Tranfer Order(LT04), SAP system send this errror
    "you need to create single TO for each position of material"
    Note: Only one Transfer Requirement was created with several postions.
    4.- if I use LB11, the transfer order is created manual for each material, however
    I need to do this one by one.
    Are there any configuration that enable create one single TO for each position in
    purchase order??.
    Im trying to create  TO with LT10 using a new movement type and this enable me move
    material to bin location. However the TR still exist.
    Thanks in advance.
    Regards

    The problem was resolved.
    Thanks in advance

  • E63 sayin no memory / an map says position within ...

    HI, i have a nokia e63. everytime i try to do anything or save any thing it say pls delect some thing as your memory is full.. so i got a memory card, and i have formatted it.. but how do i now get my things to save on there, i have not loaded anything from buying the fone, its not as if i have downloaded loads of songs of pictures, i havenot done anything, i have taken 5 photos, and then it says i have no more room for any more? why is it saying i have no memory after 5 photos, and how do i get it to either now save stuff to the memory card, ?
    and i have map on my phone it was on already, but it always says it shows my position within 500 meters.. why cant it show me where i am excatly, i was told i neede to buy something else to go with the phone to make this work properly, ( THATS NOT WHAT THE MAN SAID TO ME WHEN I ORDERED THE PHONE HE SAID IT WAS READY TO GO) but anyway it doesnt so any help please on both of these thanks very much.. x

    1. What things do you want saved there? Also, go to Menu>File Manager. How much memory do you have left on phone?
    2. GPS cannot really give you exact position. Even dedicated GPS recievers can only do so much. Also your location also has a bearing, if you are in a place with lots of tall buildings, the satellites may not be able to get a proper and more accurate fix of your position. This is especially true when inside buildings. 
    If you find my post helpful please click the green star on the left under the avatar. Thanks.

  • Determine Image Position within it's containing graphic frame.

    Hi,<br /><br />I am trying to obtain the offset of an image item within it's containing frame. i.e. if I set the top left co-ordiante to be x:10pt , y:10pt<br />I need to obtain this programatically.<br /><br />I have tried using Both the ITransformSuite and ITransformFacade without much luck. The values I am getting are not what I expect.<br /><br />I.e.<br /><br />>K2Vector<PMReal> i_x;<br />K2Vector<PMReal> i_y;<br /><br />>Utils<Facade::ITransformFacade>()->GetItemsTranslation( UIDList( imageRef ), Transform::InnerCoordinates(), &i_x, &i_y );<br /><br />always gives me 0,0 ( as you would expect ).<br /><br />>Transform::ParentCoordinates()<br /><br />Gives me a value but it doesn't seem to be relative to the top left of the containing image item.<br /><br />The strange thing is that if I create 2 image frames and import the same image, I get different values for the positions within the parent ( even if the positions of the images within their respective frames are the same in the InDesign"Control" panel  ).<br />But if I create a box and duplicate it and then import the images, I get the same values for the offsets ( although they are still not what I expect ).<br />This difference seems to be related to the original position a box is drawn with on the spread.<br /><br />Ultimately, I would like to obtain the scale, rotation, skew and offset of an image and then apply those same criteria to another image ( possibly on another document ).<br /><br />TIA,<br /><br />Mike.

    Aperture already works the way you want it to. "Rejected" is just another rating. Like all ratings, it doesn't move your image from its Project. (You can make a Smart Folder to show images rated as "rejected" -- just like you can create a Smart Folder for any rating (or series of ratings).) To see rejected images in a Project just press "{Control}+8". This and other filter short-cuts are built in Aperture. Click the magnifying glass icon inside the search field in top border of the Browser to see them.

  • Get the current position within the PBEL Prozess

    Hi,
    In the BPELConsole I can see the the flow of every PBEL process
    instance and thus I see the current position within the process.
    How would you get the current position programatically, via SOAP e.g.?
    Kind regards,
    Martin

    Hi,
    there is a JAVA API provided by Oracle
    http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28986/toc.htm
    If you really need SOAP, you can build your own Java webservices with this API

  • How do I pgm place a cursor at particular position within a UITextField?

    Does anyone know how to programmatically place the cursor to a specific position
    within a UITextField; for example, within the parenthesis (...) of a telephone number?
    Ric.

    If you mean, for instance, after you type in ww.google.com and you needto come back and correct that to www... You press down your finger anywhere in the textfield until you see a big circle come up and then you drag back to the location of interest.

  • How can I go to different positions within the video

    Hi,
      I need to be able to play a video at different positions within the video.  Can someone tell me how I can do this?

    in case you using a netstream object you can call:
    ns.play(startinms);

  • BAPI_GOODSMVT_CREATE Error - The material does not exist or is not activatd

    Scenario is to make a Goods Receipt on a material which is being imported from external sources.
    There is a purchase order created for this already in SAP.
    From MII we are using standard BAPI - BAPI_GOODSMVT_CREATE and passing the fields below:
    GM_Code - 01 since it is a goods receipt
    Psting_date - current date
    Material - material code given by SAP
    Plant - Plant code on which GR takes place.
    Move_type - 101 because it is a GR
    Entry_Qnt - 1
    PO_number - Purchase order which is created in SAP
    When I pass these details to the standard BAPI I get a return message - " The material 10xxxxxxxx does not exist or is not activated"
    Not sure where I am going wrong.
    Any help is highly appreciated.

    Thanks for your reply Vinod...
    Well.. I am calling this BAPI from Netweaver MII and I just see the request and response tags to which I pass the required values to BAPI request fields.
    I am not sure how to call this FM which you are refering to, can you please elobrate a bit or is there any guide I am refer to?

  • AP div tags/positioning within a box/can't do it/?

    *I've drawn a container box for my home page, into which I want to add an image, and then freely position my interactive/rollover buttons and/or images within the confines of that box.  I've got the background...and the box...but Dreamweaver will not let me draw an apdiv tag within the box.  I can draw outside the box, but get a circle with a slash when I try to draw within the box.
    I have a page online  www.bradmarsh.org.  I created it by just placing the image and then drawing the button boxes and placing them.  They are not placed relative to the confines of the box, so they move when I resize the browser.   Also..I might add...it's just a mockup.
    At this point, I still don't understand html, but I am starting to grasp it somewhat.  If I can solve this little issue, I can carry on with creating my own site.
    Help??
    Thank you

    I've drawn a container box for my home page,
    DW is not a graphics application with which you freely draw boxes on a workspace.  It's pro-level web authoring software that requires you to possess a working knowledge of  Web Design concepts, HTML and CSS code.
    Close DW.
    Spend some time learning CSS and XHTML first.
    Then work through this 3 part tutorial:
    Taking a Fireworks comp to a CSS Layout in DW
    Part 1 - Initial Design
    http://www.adobe.com/devnet/dreamweaver/articles/dw_fw_css_pt1.html
    Part 2 - Markup preparation
    http://www.adobe.com/devnet/dreamweaver/articles/dw_fw_css_pt2.html
    Part 3 - Layout and CSS
    http://www.adobe.com/devnet/dreamweaver/articles/dw_fw_css_pt3.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • CSS positioning within table cells

    Maybe I've just been staring at this too long but I'm stumped. I want to  position a table (could be a list) within a table by setting the parent  element to relative and the position of the child element to absolute.  The only problem is that I can't get my table cells to act as parent  elements so the smaller table (or list) positions itself relative to the  wrapper div which is also set to relative. Do I have to create divs  within the table cells? If so it sort of defeats the purpose of the  table. How can I do this using appropriate markup?
    Hope this makes sense. I think my brain has gone numb.
    Here's the page I'm trying to fix:
    http://www.kirstencassidy.com/_miniprints2.html
    Thanks in advance for your help.

    Lon Winters wrote:
    What I see is a table with red borders that contain images left justified. What do you want to position - the images? I think you could do all this in CSS without any tables.
    I think what the OP is trying to do is position some text to the right of the images?
    Obvious answer as the OP has used tables is to insert another 2 column table into each existing table cell, one for the image an one for the text.
    Alternative is to use css to float the images left, give the image a right margin and then the text will appear to the right of it in the table cell. Then just style the text with some css?

  • Set file position within a for loop, error 1

    Hi, I'm reading from a .sxm file consisting of a large chunk of text followed by binary data for 512x512 images with 4 bytes per pixel
    I’ve managed to successfully identify the start of the binary and read the first image from the file and view it using  "flatten pixmap.vi", so I’m doing something right, however when i try to read the next chunk of image data in the .sxm file using a for loop, set file position keeps churning out ERR (1).
    im at a loss as to whats causing this
    Solved!
    Go to Solution.
    Attachments:
    binaryread3d trouble.vi ‏22 KB
    back panel screenshot.png ‏27 KB

     I closed the file in the loop, doh! ... another morning well spent

  • How can I determine mouse position within a 2D picture control

    I have an application where I'd like the user to be able to interact with objects drawn in a 2D picture control using the mouse.  In order to do this, I need to translate between screen coordinates, which are passed with the mouse events, and coordinates in the 2D picture control.
    The problem I'm running into is that I can't find a way to determine the screen coordinate of the upper left hand corner of the 2D picture control's drawing/client area.  I tried using the picture control's "Position" property, but this results in an offset due to the difference between the upper left hand corner of the picture control (including the label, etc.) and the upper-left hand corner of the drawing area.  See attached VI.
    Does anybody know how to get the screen coordinate of the corner of the picture control's drawing area?
    Mark Moss
    Solved!
    Go to Solution.
    Attachments:
    2D Picture Mouse Test.vi ‏27 KB

  • Dynamically Reference Position within Absolute Path in XSL

    All---
    I have a file that I am parsing into many records. However, much of the information is duplicated and I do not want to considerate for my XSL. For this reason, I need to add logic to filter out those records that have the same account number as the previous record. It would seem that the best way to do this would be an "if" statement that compares the account number from the record in question to the account number in the previous record. This is what I have come up with:
    <xsl:for-each select="/imp1:container/imp1:Record">
    <xsl:if test='(position() = "1") or (imp1:Patient/imp1:AccountNumber != /imp1:container/imp1:Record[(position() - 1.0)]/imp1:Patient/imp1:AccountNumber)'>
    As you may have guessed, this does not work. Any thoughts?
    Thanks, Eric

    I tried my solution with Saxon 8.8 and Oracle XDK 10.2.0.2
    I created a source XML document of:
    <container xmlns="urn:foo">
      <Record>
        <Patient>
           <AccountNumber>101</AccountNumber>
           <Something>Y</Something>
        </Patient>
      </Record>
      <Record>
        <Patient>
           <AccountNumber>101</AccountNumber>
           <Something>Y</Something>
        </Patient>
      </Record>
      <Record>
        <Patient>
           <AccountNumber>102</AccountNumber>
           <Something>Y</Something>
        </Patient>
      </Record>
    </container>and an XSLT stylesheet of:
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                    xmlns:imp1="urn:foo" version="1.0">
      <xsl:output method="text"/>
      <xsl:template match="/">
      <xsl:for-each select="/imp1:container/imp1:Record">
        <xsl:variable name="prevRec" select="preceding-sibling::imp1:Record"/>
        <xsl:variable name="curAcctNum" select="imp1:Patient/imp1:AccountNumber"/>
        <xsl:variable name="prevAcctNum" select="$prevRec/imp1:Patient/imp1:AccountNumber"/>
        <xsl:if test='not($prevRec) or $curAcctNum != $prevAcctNum'>
           <!-- etc. -->
           <xsl:value-of select="imp1:Patient/imp1:AccountNumber"/>
           <xsl:text>&#xa;</xsl:text>
        </xsl:if>
      </xsl:for-each>
      </xsl:template>
    </xsl:stylesheet>Which produces an output on the command line of:
    101
    102So it seems to be correctly ignoring the duplicate entries. Is something about my test source data not mimicking faithfully enough your situation?

  • How can I move the Anchor points of multiple layers to the same position within comp?

    I have a comp of a butterfly that I want to copy the keyframes to many other butterfly comps, but to get the animation to work, I need all the anchorpoints of the individual layers to be at the exact same location within the comp (So the left wing, right wing, and body anchor points are right on top of each other)
    How can I accomplish this quickly? I have a lt of comps to do...
    Thanks all!

    I would have set this up in Illustrator Before you started. Start with a rectangle that has either fill or stroke on a layer but the opacity is set to 0. The center of the rectangle will be the anchor point for that layer when you import as a comp maintaining layer size. Now create your left left side contents on the left side of the rectangle and repeat for the right side. Import as a comp and you'll be golden.
    Here is a sample file and what the file looks like imported as a comp. Notice the x values of all anchor points are identical.
    The artwork isn't great, it was created in less than a minute but it porves the workflow.

  • Is there any way to retain position within a tab?

    There are times while reading an e-mail when I want to look at a different one. The problem is that if I switch to different tab, when I switch back I am positioned at the top of the message. Why is the position not saved and restored?

    It's a long-standing [https://groups.google.com/forum/#!topic/tb-planning/TvNnz7vLGdY bug] (nuisance). But if you open messages in a window, instead of a tab, the scroll position is retained. The F and B keys (forward and back) still work for navigating a message list, just as they do for messages viewed in tabs or the Message Pane.

Maybe you are looking for

  • How many new tables we can create in available memory?

    Hi Friends, First of all i am not tech Guy. i am SD functional Person. I would like to know is there any constraint to create n number of Ztables? Is the memory space belongs to tables is same as the data storage memory? if both memories are seperate

  • My ipod touch is stuck on recharge mode even when it isn't connected to the computer???

    Right now my Ipod touch is in the charging / recharge screen and it won't leave that screen even when I unplug it. And it don't seem to be charging the red part on the battery indicator is flashing red and not moving into the green at all I have trie

  • Spark VideoDisplay - how to set `background` color

    Hello! How can I set the background color of the Spark VideoDisplay to be something else than the default black one? Thank you.

  • Noise on the photo. How to set up the camera?

    Noise on the photo. How to set up the camera? Phone has become worse to do a pictures. A lot of noise on the photo. Often photo obtained not clear, smeared. I've heard that i can configure through iTunes. But I do not know how?? Or tell me another wa

  • Remove duplicate emails and mailboxes

    I am moving emails from an old Mac to our new MacBook Pro. My wife has a LOT of mailboxes. It seems to me that when she imported her emails onto our old Mac, from an even older Mac, that mailboxes got duplicated. I think there are mailboxes and folde