Good compression for widescreen export

Hi, I've got a 9min draft film I want to post online. It's 16:9 aspect, and I'm having trouble exporting via quicktime conversion.
I recently posted a similar film in 4:3, using qt conversion > mpeg-4 at 352x288, which works fine. However, when I export this one it always comes out in 4:3.
Any clues on the best method for solving this problem, and advice on which compressor will make the smallest file size will be greatly appreciated.
Cheers

Do you use compressor?
I suggest you export a 10 second test-movie from FCP and import it into compressor to run some tests.
open up the 'inspector' in compressor and follow your nose, droping frame rates, bitrates, resolution etc until you are happy, then import your final movie and do the real thing.
In the Inspector there is also a tab for Geometry - here you can ensure you have you 16:9 ratio... basically, all the settings you will be fiddling with are in the inspector.
You will always have to compromise when it comes to file size versus quality of image... if you want a really small file, you will no doubt be unhappy with the way the image looks...
What is the final destination of the movie? ie-what website?

Similar Messages

  • Proper compression for Quicktime Export

    I have FCP 5. I'm currently trying to export a 90 minute project to Quicktime to burn a DVD in IDVD. I am using a dual 1gig G4 with a Lacie 250gig hard drive, that currently has 165 gig available. I am using 65 gig for the project. I initially chose the export quicktime conversion command and chose NONE for compression settings. Timeline stated it would take five hours to complete transfer. With 1 hour left it crashed stating "General Error". Tried this twice over the last two days. FCP manual says to use Quicktime Movie command and current settings. Trying this, but timeline states 11 hours for conversion! Is this right? Is G4 processors too slow for FCP5? Please help!
    ed

    If you completely render your timeline and do an audio mixdown before doing the export, the export should be faster. Seems to me that I've read quite a few posts about trouble with exports if the render hasn't been done first.
    Although I've never had any luck with it, you can also export a non-self contained QT for use in iDVD. It should export much faster as it simply creates a file that "references" the existing clips in the timeline. Might be worth a try.
    rh

  • Compression for 720PN 24P footage

    What is the best compression method for footage shot in 720pn 24p to preserve maximum quality? And also, another good compression for a sharable file?

    What is the best compression method for footage shot in 720pn 24p to preserve maximum quality?
    DVCPRO HD 720p24. There is an Easy Setup in FCP for this...if you capture from tape. And if you capture via firewire, you can only get full quality. If you import from P2, it only comes in at full quality as well. By full quality I mean ZERO loss. Firewire capture is a data transfer.
    And also, another good compression for a sharable file?
    H.264
    Shane

  • Exporting photos for UHDTV or Native 4K TV, what are the best settings ? (File: Quality File: Color Space, Image Sizing and resolution)   Or in other words; How can I get the smallest files but keep good quality for display on new UHDTV

    Exporting photos for UHDTV or Native 4K TV, what are the best settings ? (File: Quality File: Color Space, Image Sizing and resolution)   Or in other words; How can I get the smallest files but keep good quality for display on new UHDTV

    You're welcome, and thank you for the reply.
    2) Yesterday I made the subclips with the In-Out Points and Command-U, the benefit is that I've seen the clip before naming it. Now I'm using markers, it's benefit is that I can write comment and (the later) clip name at once, the drawback is that I have to view to the next shot's beginning before knowing what the shot contains.
    But now I found out that I can reconnect my clips independently to the format I converted the master clip to. I reconnected the media to the original AVI file and it worked, too! The more I work with, the more I'm sold on it... - although it doesn't seem to be able to read and use the date information within the DV AVI.
    1) Ok, I tried something similar within FCE. Just worked, but the file size still remains. Which codec settings should I use? Is the export to DV in MOV with a quality of 75% acceptable for both file size and quality? Or would be encoding as H.264 with best quality an option for archiving, knowing that I have to convert it back to DV if I (maybe) wan't to use it for editing later? Or anything else?
    Thank's in advance again,
    André

  • Exporting an Apple ProRes before compressing for SD-DVD or Blu-ray (or AVCH

    Hello,
    this is my question:
    does exporting a sequence to an Apple ProRes Self Contained file helps to gain quality when compressing for SD-DVD or Blu-ray (or AVCH disc)?

    Thanks for answering, Tom.
    Let me try again, though. (Also, just thinking about the footage, forgetting about effects, titles, etc.)
    Do you think that this applies to DV-NTSC and HDV sequences?
    I've compared a DV-NTSC sequence exported out using:
    DV-NTSC compression and one -using Apple ProRes.
    They do look different. Wouldn't you agree to this?
    What about HDV,
    - is it erroneous to think that (when capturing) by transcoding to AIC or ProRes you are gaining some quality?
    - or if you already capture HDV natively, it doesn't make a difference to export an ApplePro Res version to make a SD-DVD from?
    I am concerned with this, because I shot once some HDV footage at night with a Sony Camera, going to a hard drive, and when I transcoded the files from the hard drive to use in FCP, (using MPEG streamclip) I noticed a relevant difference in how much the noise was noticeable on the HDV compressed files vs. the apple ProRes compressed files.
    Have you ever seen these differences?
    Thanks!!!

  • Anyone got any good AVCHD FOR DVD Presets they can share for AME CC Latest Version when exporting from Premiere Pro CC Latest Version?

    Just wondering if anyone has for download or can share some templates or settings that I can use to create a One Stop Encode that will suit both AVCHD HD DVD Disc and be good as a Computer MP4 File for PC and Android Mobile Playback and maybe even good enough for Full Bluray Mastering.
    Currently I am using mostly HDV 50i Material with a bit of 1080 30p and Mobile phone type MP4 files thrown in.
    I typically Encode to for DVD SD and HD BD. However I would like to be able to take advantage of putting some of the short HD Video to AVCHD DVD-R Discs.
    I understand that the maximum bit rate is gonna be 18mbs? for AVCHD on DVD but am unsure what Profile settings I need to be compliant and as I say if create a good one MP4 that will be good for all formats
    whether it be AVCHD DVD, Blu-ray Disc and good for YouTube uploading with possibility of compatibility with some of the Android Mobile Phones and Tablets.
    Thanks in Advance
    Phil

    shooternz wrote:
    Here is the solution:  Slow down. Give your project some love. Smell the roses.
    Agreed about the roses but alas my next project always calls. Actually, I think what happens is I give each project SO much love that when it comes to exporting, I've run out of time.
    shooternz wrote:
    Then it would not be a default...it would be an option and you already have that option.
    Semantics aside, I would love to be able to have it at least default to whatever option was last chosen. Or, perhaps I shouldn't use the word default again...I'd love it to simply remember my preferred setting. That's all.

  • Optimun settings for Widescreen mp2 (m2v) converted to mp4/h264

    ive recorded a few films of freeview (UK digital terrestrial tv - PAL-25fps) and, after exporting as m2v file (mpeg2), i want to convert to mp4 / h264 and have a good picture quality when watching on a 20inch imac.
    At the mo ive tried using 368x208 (very small widescreen setting) with around 600kbps, keyframe every 25fps (to avoid that pulsing keyframe effect that i find really annoying with mp4).
    Can anyone share with me a good setting for good quality mp4 ready to be viewed on a 20inch imac - hopefully alot smaller than mp2 (1.8gb for a 1hr40min film) - managed to get this 1.8gb down to around 1gb for a 1.40hr film

    i know- just doing it in qt because i couldn't see a 'key frame every...' function in stream clip.
    Cant see a export to apple tv function theres just a ipod button in the encode settings box. - im using version 1.8
    Message was edited by: steveOooo

  • Compressing for web site

    Hi, I've got a sequence that is true 16:9 and I'm trying to compress it as a Quicktime file for a web site. When I play it back it is in 4:3. What can I do to change the settings and what would be a good dimention for a web page?

    Change it in the size box of the Quicktime Export window.
    W=(H/9)*16
    Good luck,
    CaptM

  • Excise Invoice Settings for Indirect Exports (ARE-1)

    Dear All,
    When we create Billing doucment for Indirect or merchant exports and prepare J1IIN whith reference to Billing doc, we go to Calculate Tax / Utilization tab, where we has to choose deemed export. By default, on clicking the pencil, the blue colour is on the deemed one.
    As we select deemed export , the system allow us to make only ARE-3 document.
    I want to create ARE1 document for Merchant Export (CT-1 Bond). So that we can select export under bond. Can anyone tell me the customization setting for creating ARE1 for Merchant Export.
    Best regards,
    Subrat

    Dear Subrat
    If you want to have "Exports under Bond", Go to IMG - Logistics-General --> Tax on Goods Movements --> India --> Business Transactions --> Outgoing Excise Invoices --> Maintain Default Excise Groups and Series Groups. 
    Here for the combination of your sales area, shipping point, plant, excise group and series group, maintain "B" for the tab "Export".
    thanks
    G. Lakshmipathi

  • GOOD NEWS FOR THE NANO!!!

    "They claim current iPods can already play video (but this is disabled) — which means an updated firmware might enable movie playback, something not infeasible given the power of the iPod hardware platform."
    http://engadget.com/page/3 -- scroll down to "Think Secret thinks we'll see a video iPod Tomorrow" and read the update!!
    This is good news for all those who may be regreting buying the nano. (I don't, it's flash-newer technology, hard drive skips)

    Yeah,
    Even though the screen on the Nano is small, I would still welcome video playback. I don't think copying full DVD's onto the Nano is practical given the storage size unless there is a way to compress video/DVD content to be loaded on to the Nano. You would be able to hold maybe 1 or 2 full DVD movies plus your music library. The new video iPod and regular iPods have much larger storage for things like full quality audio and video.
    I welcome the ability to play Quick Time content, though.
    Have a lot of video/movies in QT format and the sound would probably be great over headphones.
    I do not regret buying a Nano, though. The Nano is an impressive piece of technology and still a good-looking device for playing any audio/video/image content.
    I hope apple does release a firmware updater to recent iPods for video playback.
    This would just make the Nano even more slicker device.

  • Post Goods Receipt for Inbound Delivery using WHSCON IDoc

    Dear All
    Currently I am working on a big project dealing with EDI connections to our logistics partner for the Export business. The entire message flow between Lindt and our partner should be via EDI. Our SAP release is (still) 4.6c.
    We will create two kinds of despatch advice messages, one for inbound deliveries and one for outbound deliveries for customers.
    I would appreciate your support in the following problem that I am facing with the inbound delivery scenario:
    We create stock transport orders (purchase orders, POs) for the goods intended to be delivered into the plant at our partner
    We create a delivery (type NL = replenishment delivery) for this POs
    As soon as we post the goods issue we send the despatch advice (as EANCOM D96A DESADV message) to our partner.
    At this point the delivery is basically completed, i.e. packing status (PS) and goods movement status (GM / GS) are equal to 'C' (= completed).
    Our logistics partner uses the same EDI message to send us the goods receipts data, e.g.:
    We dispatched 50 units of a product => QTY:50:12
    The partner received indeed 50 units => QVR:50:66
    Please note that we do not use the QVR segment for the quantity difference (between despatched and received quantity) but it contains the received units. This way we avoid negative values in the QVR segment.
    When the logistics partner sends back the DESADV message containing the received quantities (QVR segment) we want to make
    the goods receipts for the products in the original stock transport order and
    upate the message flow in the delivery
    My idea was to transform the incoming DESADV message into a WHSCON.DELVRY03 IDoc based on the documentation in: [Delivery Interface|http://help.sap.com/saphelp_crm40/helpdata/en/e2/654b15a9f411d184ec0000e81ddea0/content.htm]
    In the delivery header control E1EDL18 I used QUALF = 'PGI' (Post goods issue).
    I prepared an inbound WHSCON IDoc according to the documentation mentioned below. I managed to get some feedback from the Idoc processing implying that the system tried to do the goods receipt in the PO but failed.
    To make a long story short here are my questions:
    Can an inbound WHSCON IDoc used for doing both the goods receipt in the PO and the update of the message flow in the delivery?
    Does anybody have an example on how to fill the WHSCON IDoc?
    Or is my approach a cul-de-sac ?
    Kind Regards
       Uwe
    PS: A related question can be found here: Goods Receipt in PO AND Message Flow Update in Inb. Delivery using WMMBXY

    Hi Uwe,
    Can an inbound WHSCON IDoc used for doing both the goods receipt in the PO and the update of the message flow in the delivery?
    The binary answer would be no. You should use WMMBXY or MBGMCR instead.
    But if we are doing goods receipt against Inbound delivery then answer is YES with additionally E1EDL18-QUALF = 'PIC' populated. But please remember no partial receipt is possible against Inbound Delivery.
    We should populate E1EDL20-VBELN with our Inbound delivery number and line item info should go to E1EDL24.
    I have done a similar interface recently where we are doing receipt against Inbound delivery. But our case was a bit complex because we had to support against Inbound delivery. So we had to go for a custom solution on top of IDOC_INPUT_DELVRY.
    Hope this helps. Let me know if you have more questions.
    Regards,
    Rudra

  • Call BAPI_GOODSMVT_CREATE to create a goods receipt for purchase order

    Hi,
    I'm calling the bapi BAPI_GOODSMVT_CREATE to create a goods receipt for purchase order, but the following code doesn't work. It doesn't give me any kind of error message but it does nothing as well...
    Can anyone help me please?
    Thank You
    Hugo
    Code
    DATA: wa_goodsmvt_header  LIKE bapi2017_gm_head_01,
                            wa_goodsmvt_code    LIKE bapi2017_gm_code,
                            wa_bapi2017_gm_head TYPE bapi2017_gm_head_ret-mat_doc.
                      DATA: it_goodsmvt_item LIKE bapi2017_gm_item_create OCCURS  0 WITH HEADER LINE,
                            it_return        LIKE bapiret2 OCCURS  0 WITH HEADER LINE.
                      wa_goodsmvt_header-pstng_date = SY-DATUM.
                      wa_goodsmvt_header-doc_date   = SY-DATUM.
                      wa_goodsmvt_header-ref_doc_no = '4500000020'.
                      wa_goodsmvt_code-gm_code = '01'.          "Goods receipt for purchase Order
                      it_goodsmvt_item-stge_loc  = 'BPF2'.
                      it_goodsmvt_item-move_type = '101' .
                      it_goodsmvt_item-entry_qnt = 17.
                      it_goodsmvt_item-entry_uom = 'KG'.
                      it_goodsmvt_item-mvt_ind   = 'B'.
                      it_goodsmvt_item-po_number = '4500000020'.
                      it_goodsmvt_item-po_item   = '00010'.
                      it_goodsmvt_item-material  = '50'.
                      APPEND it_goodsmvt_item.
                      CALL FUNCTION  'BAPI_GOODSMVT_CREATE'
                        EXPORTING
                          goodsmvt_header  = wa_goodsmvt_header
                          goodsmvt_code    = wa_goodsmvt_code
                        IMPORTING
                          materialdocument = wa_bapi2017_gm_head
                        TABLES
                          goodsmvt_item    = it_goodsmvt_item
                          return            = it_return.
                        data: begin of errmsg occurs 10.
                                include structure bapiret2.
                        data: end of errmsg.
                        data: wmenge like iseg-menge,
                              errflag.
                        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:/ 'Ok'.
                          endif.
                        endif.
                        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
                        EXPORTING
                        wait = ' '.

    Hi,
    Thank you for the asnwer! I'm a rookie at ABAP so please forgive my stupid questions
    I've changed the code to:
    DATA: wa_goodsmvt_header  LIKE bapi2017_gm_head_01,
                            wa_goodsmvt_code    LIKE bapi2017_gm_code,
                            wa_bapi2017_gm_head TYPE bapi2017_gm_head_ret-mat_doc.
                      DATA: it_goodsmvt_item LIKE bapi2017_gm_item_create OCCURS  0 WITH HEADER LINE,
                            it_return        LIKE bapiret2 OCCURS  0 WITH HEADER LINE.
                      wa_goodsmvt_header-pstng_date = SY-DATUM.
                      wa_goodsmvt_header-doc_date   = SY-DATUM.
                      wa_goodsmvt_header-ref_doc_no = '4500000020'.
                      wa_goodsmvt_code-gm_code = '01'.          "Goods receipt for purchase Order
                      it_goodsmvt_item-plant     = 'BP01'.
                      it_goodsmvt_item-stge_loc  = 'BPF2'.
                      it_goodsmvt_item-move_type = '101' .
                      it_goodsmvt_item-entry_qnt = 10.
                      it_goodsmvt_item-entry_uom = 'KG'.
                      it_goodsmvt_item-mvt_ind   = 'B'.
                      it_goodsmvt_item-po_number = '4500000020'.
                      it_goodsmvt_item-po_item   = '10'.
                      it_goodsmvt_item-material  = '50'.
                      APPEND it_goodsmvt_item.
                      CALL FUNCTION  'BAPI_GOODSMVT_CREATE'
                        EXPORTING
                          goodsmvt_header  = wa_goodsmvt_header
                          goodsmvt_code    = wa_goodsmvt_code
                        IMPORTING
                          materialdocument = wa_bapi2017_gm_head
                        TABLES
                          goodsmvt_item    = it_goodsmvt_item
                          return            = it_return.
                          write:/ it_return-message.
    And the return message is : Material document data and PO data do not match (Material)
    Any idea of what might be the problem?
    Thanks

  • Goods receipt for subcontracting order! BAPI_GOODSMVT_CREATE

    I wanna use BAPI "BAPI_GOODSMVT_CREATE"  to create goods receipt for subcontracting order.
    But it says that this combination is not possible.  Combination of my movement type and this BAPI.
    What can i do to solve it?
    thanks in advance.

    >
    Julia Nikiforva wrote:
    > I wanna use BAPI "BAPI_GOODSMVT_CREATE"  to create goods receipt for subcontracting order.
    > But it says that this combination is not possible.  Combination of my movement type and this BAPI.
    >
    > What can i do to solve it?
    >
    > thanks in advance.
    Might work
    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.

  • Goods Receipts for Purchase Order using BAPI_GOODSMVT_CREAT

    Hi experts,
    I am working on the a program where am generating Goods Receipts for Purchase Order. the BAPI_GOODSMVT_CREAT returns an error saying "Material 6003022 not maintained in plant 1001"
    Can any one assist? is there a field I may be missing?
    Here is a sample code.
    DATA: gm_header TYPE bapi2017_gm_head_01.
    DATA: gm_code TYPE bapi2017_gm_code.
    DATA: gm_headret TYPE bapi2017_gm_head_ret.
    DATA: gm_item TYPE TABLE OF bapi2017_gm_item_create WITH HEADER LINE.
    DATA: gm_return TYPE bapiret2 OCCURS 0 WITH HEADER LINE.
    DATA: gm_retmtd TYPE bapi2017_gm_head_ret-mat_doc.
    CLEAR: gm_return, gm_retmtd.
    REFRESH gm_return.
    Setup BAPI header
    "data
    gm_header-pstng_date = sy-datum.
    gm_header-doc_date = sy-datum.
    gm_code-gm_code = '02'.
    " MB1A * Write 971 movement to table CLEAR GM_ITEM.
    MOVE '101' TO gm_item-move_type .
    " MOVE 'Q' TO GM_ITEM-SPEC_STOCK.
    MOVE '6003022' TO gm_item-material.
    MOVE '10' TO gm_item-entry_qnt.
    MOVE 'EA' TO gm_item-entry_uom.
    MOVE '1001' TO gm_item-plant.
    MOVE '' TO gm_item-stge_loc.
    MOVE '0901' TO gm_item-move_reas.
    "  MOVE '4500006877' TO GM_ITEM-WBS_ELEM.
    "  MOVE '0020' TO GM_ITEM-VAL_WBS_ELEM.
    MOVE '0020' TO gm_item-deliv_numb.
    MOVE '4500006881' TO gm_item-po_number.
    MOVE '0010' TO gm_item-po_item.
    APPEND gm_item.
    Call goods movement BAPI
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
      EXPORTING
        goodsmvt_header  = gm_header
        goodsmvt_code    = gm_code
      IMPORTING
        goodsmvt_headret = gm_headret
        materialdocument = gm_retmtd
      TABLES
        goodsmvt_item    = gm_item
        return           = gm_return.
    IF NOT gm_retmtd IS INITIAL.
      COMMIT WORK AND WAIT.
      CALL FUNCTION 'DEQUEUE_ALL'.
    ELSE.
      COMMIT WORK AND WAIT.
      CALL FUNCTION 'DEQUEUE_ALL'.
    ENDIF.

    >
    Spark842 wrote:
    > Hi experts,
    > I am working on the a program where am generating Goods Receipts for Purchase Order. the BAPI_GOODSMVT_CREAT returns an error saying "Material 6003022 not maintained in plant 1001"
    >  Can any one assist? is there a field I may be missing?
    >
    > Here is a sample code.
    >
    > DATA: gm_header TYPE bapi2017_gm_head_01.
    > DATA: gm_code TYPE bapi2017_gm_code.
    > DATA: gm_headret TYPE bapi2017_gm_head_ret.
    > DATA: gm_item TYPE TABLE OF bapi2017_gm_item_create WITH HEADER LINE.
    > DATA: gm_return TYPE bapiret2 OCCURS 0 WITH HEADER LINE.
    > DATA: gm_retmtd TYPE bapi2017_gm_head_ret-mat_doc.
    > CLEAR: gm_return, gm_retmtd.
    > REFRESH gm_return.
    > * Setup BAPI header
    > "data
    > gm_header-pstng_date = sy-datum.
    > gm_header-doc_date = sy-datum.
    > gm_code-gm_code = '02'.
    >
    >
    > " MB1A * Write 971 movement to table CLEAR GM_ITEM.
    > MOVE '101' TO gm_item-move_type .
    > " MOVE 'Q' TO GM_ITEM-SPEC_STOCK.
    > MOVE '6003022' TO gm_item-material.
    > MOVE '10' TO gm_item-entry_qnt.
    > MOVE 'EA' TO gm_item-entry_uom.
    > MOVE '1001' TO gm_item-plant.
    > MOVE '' TO gm_item-stge_loc.
    > MOVE '0901' TO gm_item-move_reas.
    > "  MOVE '4500006877' TO GM_ITEM-WBS_ELEM.
    > "  MOVE '0020' TO GM_ITEM-VAL_WBS_ELEM.
    > MOVE '0020' TO gm_item-deliv_numb.
    > MOVE '4500006881' TO gm_item-po_number.
    > MOVE '0010' TO gm_item-po_item.
    > APPEND gm_item.
    >
    > * Call goods movement BAPI
    >
    > CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
    >   EXPORTING
    >     goodsmvt_header  = gm_header
    >     goodsmvt_code    = gm_code
    >   IMPORTING
    >     goodsmvt_headret = gm_headret
    >     materialdocument = gm_retmtd
    >   TABLES
    >     goodsmvt_item    = gm_item
    >     return           = gm_return.
    >
    > IF NOT gm_retmtd IS INITIAL.
    >
    >   COMMIT WORK AND WAIT.
    >   CALL FUNCTION 'DEQUEUE_ALL'.
    > ELSE.
    >   COMMIT WORK AND WAIT.
    >
    >   CALL FUNCTION 'DEQUEUE_ALL'.
    > ENDIF.
    My guess, is that this material is not really maintained in the Plant '1001', to be on the safer side, get the exact values from EKPO itself, also check if this material exists in the table MARC for the plant and storage location.
    MOVE '1001' TO gm_item-plant.   "<< Hard coded
    MOVE '' TO gm_item-stge_loc.
    Replace the above hardcodes to something like this to get the actual value from EKPO.
    select werks lgort into (gm_item-plant, gm_item-stge_loc) from ekpo
       where ebeln = gm_item-po_number
            and ebelp = gm_item-po_item.

  • Goods Receipt for PO using BAPI

    Hello,
    I need to do a goods receipt for a purchase order using bapi_goodsmvt_create for movement type 101. My function module does not return the material document number. Can someone help me with my code?
    Thanks,
    A.P.
    FUNCTION Z_GR_BAPI.
    ""Local interface:
    *"  IMPORTING
    *"     REFERENCE(I_CODE) TYPE  GM_CODE
    *"     REFERENCE(I_MOVE_TYPE) TYPE  CHAR3
    *"     REFERENCE(I_EKKO) TYPE  EKKO
    *"  EXPORTING
    *"     REFERENCE(E_DOCUMENT) TYPE  BAPI2017_GM_HEAD_RET-MAT_DOC
    *"     REFERENCE(E_RETURN) TYPE  BAPIRET2
    *"  TABLES
    *"      T_EKPO STRUCTURE  EKPO
    Structures for BAPI
      data: gm_header  type bapi2017_gm_head_01.
      data: gm_code    type bapi2017_gm_code.
      data: gm_headret type bapi2017_gm_head_ret.
      data: gm_item    type table of
                       bapi2017_gm_item_create with header line.
      data: gm_return  type bapiret2 occurs 0.
      data: gm_retmtd  type bapi2017_gm_head_ret-mat_doc.
      data: x_ekpo type table of ekpo with header line.
       x_ekpo[] = t_ekpo[].
      clear: gm_return, gm_retmtd.
      refresh gm_return.
      gm_code-gm_code = i_code.
      gm_header-pstng_date = sy-datum.
      gm_header-doc_date = sy-datum.
      gm_header-pr_uname = sy-uname.
      loop at x_ekpo.
        gm_item-material = x_ekpo-matnr.
        gm_item-plant = x_ekpo-werks.
        gm_item-stge_loc = x_ekpo-lgort.
        gm_item-move_type = i_move_type.
        gm_item-mvt_ind = 'B'.
        gm_item-stck_type = space.
        gm_item-entry_qnt = x_ekpo-menge.
        gm_item-entry_uom = x_ekpo-meins.
      append gm_item.
      endloop.
      CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
        EXPORTING
          GOODSMVT_HEADER             = gm_header
          GOODSMVT_CODE               = gm_code
         TESTRUN                     = ' '
        IMPORTING
          GOODSMVT_HEADRET            = gm_headret
          MATERIALDOCUMENT            = gm_retmtd
        MATDOCUMENTYEAR             =
        TABLES
          GOODSMVT_ITEM               = gm_item
        GOODSMVT_SERIALNUMBER       =
          RETURN                      = gm_return.
    e_document = gm_retmtd.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
             WAIT          = 'X'.
         IMPORTING
            RETURN        =
    ENDFUNCTION.

    Hi,
    This piece of code may be helpful.
    Structures for BAPI
      data: gm_header  type bapi2017_gm_head_01.
      data: gm_code    type bapi2017_gm_code.
      data: gm_headret type bapi2017_gm_head_ret.
      data: gm_item    type table of
                       bapi2017_gm_item_create with header line.
      data: gm_return  type bapiret2 occurs 0.
      data: gm_retmtd  type bapi2017_gm_head_ret-mat_doc.
      clear: gm_return, gm_retmtd. refresh gm_return.
    Setup BAPI header data.
      gm_header-pstng_date = sy-datum.
      gm_header-doc_date   = sy-datum.
      gm_code-gm_code      = '06'.                              " MB11
    Write 551 movement to table
      clear gm_item.
      move '551'        to gm_item-move_type     .
      move '000000000040001234' to gm_item-material.
      move '1'        to gm_item-entry_qnt.
      move 'EA'       to gm_item-entry_uom.
      move '0004'     to gm_item-plant.
      move '4000'     to gm_item-stge_loc.
      move '201'      to gm_item-move_reas.
    Determine cost center per plant
      case xresb-werks.
        when '0004'.
          move '0000041430' to gm_item-costcenter.
        when '0006'.
          move '0000041630' to gm_item-costcenter.
        when '0007'.
          move '0000041731' to gm_item-costcenter.
        when '0008'.
          move '0000041830' to gm_item-costcenter.
      endcase.
      append gm_item.
    Call goods movement BAPI
      call function 'BAPI_GOODSMVT_CREATE'
           exporting
                goodsmvt_header  = gm_header
                goodsmvt_code    = gm_code
           importing
                goodsmvt_headret = gm_headret
                materialdocument = gm_retmtd
           tables
                goodsmvt_item    = gm_item
                return           = gm_return.
       call function 'BAPI_TRANSACTION_COMMIT'
           exporting
                wait = 'X'.
    regards,
    keerthi.

Maybe you are looking for

  • View attachments in email notification

    Is there any way to have an attachment viewable in the email notification that includes submitted data? If not, is there anything that is easier than logging in and downloading the attachment?

  • IWeb maximum page size?

    Hi all, I'm just starting to experiment in iWeb and want to create a simple illustration portfolio site. I plan to have the main folio pages as long format pages, some 700 pixels wide X 20,000 pixels tall, so avoiding having thumbnail areas and keepi

  • How to get kitkat update

    how to get the kitkat update for the note 3

  • No SID found for value

    I have loaded a DSO successfully, they when I am activating it, I receive the error message "No SID found for value 4125463633 ZGL_SIRID.  However, when I look at the SID table (/BIC/SZGL_SIRID) and search for the value indicated, I see that value in

  • Photo app crashes creating a new fotostream

    HI, I have a problem using the photo app on my ipad (with the most actual ios software). I would like to generate a new shared photostream. When I touch "make new stream" the app crashes and needs to be closed with "doubleklick" on the home button an