Extension fields with bapi 'BAPISORDER_GETDETAILEDLIST'

Hello,
I want to get values of extensions fields of vbap with bapi 'BAPISORDER_GETDETAILEDLIST'.
Is there anyone know how to do that? How to fill extensionout table?
Thanks.

Hi
I haven't that BAPI on my release (4.6C), but I suppose the parameter extensionout is like BAPIPAREX.
The structures for extensions are:
- BAPE_VBAK: for header
- BAPE_VBAP: for item
- BAPE_VBEP: for scheduls
So BAPE_VBAP is yours.
The system dosen't move all Z-FIELD from VBAP to BAPE_VBAP, but only fields are in structure VBAPKOZ.
So you should insert your Z-FIELD of VBAP into VBAPKOZ.
After I suppose the system automatically fill extensionout and so:
LOOP AT extensionout.
CASE extensionout-STRUCTURE.
WHEN 'BAPE_VBAK'.
MOVE extensionout TO BAPE_VBAK.
WHEN 'BAPE_VBAP'.
MOVE extensionout TO BAPE_VBAP.
Here you can read the z-field and assign them to their *item:
  READ TABLE T_VBAP WITH KEY VBELN = BAPE_VBAP-VBELN
                             POSNR = BAPE_VBAP-POSNR.
WHEN 'BAPE_VBEP'.
MOVE extensionout TO BAPE_VBEP.
ENDCASE.
ENDLOOP.
Max

Similar Messages

  • Display attachement extension field with link in report

    Hi gurus,
    Do you know how i can display in a report, an attachment extension field, with the link to the document ? It displays fine, but how can i add the hyperlink to open it directly from the report ?
    Regards,
    Simion

    Hey Ben,
    Thanks for the suggestion. I understand what you are saying, the problem is that when you have an interactive report that includes a BLOB and you use the built-in method for displaying a download link, it only gives you the option of using a text link. The method is outlined in the online help under:
    Home > Advanced Programming Techniques> About BLOB Support in Forms and Reports > About BLOB Support in Reports
    This is done by using the following syntax in the Number/Date Format of the column attribute of the BLOB:
    DOWNLOAD:CC_DOCUMENTS:CONTENTS:ID::MIME_TYPE:FILENAME:UPDATED_ON::attachment:View
    Where the last parameter is the link text. The only problem is that there is no option for substituting an image rather than the link text. That's what I'm trying to work around. Sorry if you new all of this already, but I wanted to explain what I've already done. Thanks for any help you can offer.

  • Saving RAW field with BAPI in extensionin

    Hi,
    I have a web dynpro application where I have a function module which returns a field named ROLE_GUID of type raw (byte[] in java). I need to save this field in table CATSDB using bapi BAPI_CATIMESHEETMGR_INSERT, the parameter is to be passed to he function as part of the EXTENSION_IN parameter using structure BAPT_TE_CATSDB. 
    What I understand is that parameters are to be passed to extension_in as fixed length strings.
    My question is:
    - How do I convert the raw value to a string that I can put in extension_in ?
    Thanks,
    Diego

    Hi diego. How did you relate CATSRECORDS_IN and EXTENSIONIN, Could you provide some code snippet. I would really appreciate it

  • Fill exit-field with BAPI

    Hi,
    I need to fill a exit field in the header of invoice FB60  " INVFO-ZLSPR" ( bloc payement )
    using BAPI   "BAPI_ACC_INVOICE_RECEIPT_POST "
    Can any one send me exemple of code?
    best regards.

    i think that INVFO-ZLSPR  is not a exit field  but i d'not find  in th parameters of  BAPI  BAPI_ACC_INVOICE_REceipt_post
    Where can i find this field  .?

  • Reg: Mandatory fields updation with BAPI

    Hi..
    We are working on BDC using BAPI. In this if flat files contians only 4 fields and the mandatory fields in the application are seven then system needs to through error message. But with BAPI the program is updating the database without throwing error eventhough all mandatory fileds are not filled up with data.. Where exactly we need to do modifications to get error message when mandatory fields are not filled up with input.
    Regards

    Hi Verendra
    Sometimes the function modules/BAPI's used by SAP do a direct update on the database tables. In such scnearios the entries are created in the system even though if the mandatory entries are not filled.
    If the number of mandatory fields are small, then before the BAPI call,  check if all the mandatory fields are filled or not;throw error in case of empty fields & bypass the BAPI call.
    In case the mandatory fields are too high, then in that case, please use BDC recording to update the data.
    Regards
    Chetan
    PS:Reward points if you find this helpful.

  • Usage of BAPI_OUTB_DELIVERY_CHANGE with extension fields populated

    Hi ,
    Does anyone have an example on how to use BAPI_OUTB_DELIVERY_CHANGE with the extension fields populated. A sample code would be very helpful .
    Thanks
    Ankit

    Ankit,
      The BADI - SMOD_V50B0001  will be triggered if the Extension Tables are filled.
      Method EXIT_SAPLV50I_010
      Should do the trick.
    Todd

  • Structure extension in satndard bapi for sales order

    hi all,
    i have a requirement where i have to create sales order with some custom fields on to the screen.
    how can i use the extension structure  in bapi 'BAPI_SALESORDER_CREATEFROMDAT2' .
    to upload the data of the custom fields.
    regards
    vijay

    Hi Vijay sharma,
    Please check these links
    http://help.sap.com/saphelp_46c/helpdata/en/c3/40999d8b8911d396b70004ac96334b/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c3/4099a68b8911d396b70004ac96334b/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c3/4099ac8b8911d396b70004ac96334b/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/3e/0e1089c24611d1ad09080009b0fb56/content.htm
    Example for BAPI
    http://www.sapmaterial.com/bapi_example.html
    Hope this helps...
    Best regards,
    raam

  • Handling Extension Structure using BAPI in Unicode environment

    Hi,
    I am using the BAPI BAPI_OUTB_DELIVERY_CREATE_SLS  to create Outbound Delivery.
    We have a nested include structure in LIPS which has mixed field type.
    Since BAPIPAREX is used to pass the value for Extension fileds, I have problem with the Unicode environment. Packed fields are filled with '#''s, Can someone who come cross similar issue could help me please.

    In BAPI the structure I want to populate : EXTENSION_IN
    The custom append structure is in: LIPS
    Append structure name: OILLIPS
    (Below are Some fields in structure)
    .INCLUDE     OID_EX          0
    OID_EXTBOL       OID_EXTBOL     CHAR     16
    OID_MISCDL       OID_MISCDL     CHAR     16
    .APPEND       YOID_EX          0
    YYARC       YYVARC                         CHAR                           21
    YYLRN       YYVLRN     CHAR     22
    YYEPC       YYVEPC     CHAR     4
    YY_NOMNR       OIJ_NOMNR     CHAR     20
    YY_NOMTYP     OIJ_NOMTYP     CHAR     4
    YY_PASSTHROUGH     YYMPASSTHROUGH     CHAR     1
    YY_PARCEL     YYMPARCEL     NUMC     3
    YY_TRD_PARCEL     YYMTRD_PARCEL     NUMC     3
    YY_LD_LOCID     YYMLD_LOCID     CHAR     10
    YY_DC_LOCID     YYMDC_LOCID     CHAR     10
    YY_NOM_TSYST     OIJ_TSYST     CHAR     10
    YY_NOM_CREYEAR     YYMCREYEAR     NUMC     4
    YY_NOM_CYCLE     OIJ_CYCLE     CHAR     10
    .INCLUDE     OIC_PIPE          0
    I tried using field-symbols and casting and also CALL METHOD cl_abap_container_utilities=>fill_container_c. Both are giving only hexadecimal values and then when tired to assign this hexadecimals values to character field i am getting "#"'s.
    This morning, when I tired by defining a structure with field correspond to this append structure as character field with length corresponding to each field and then assign individual field one by one it takes the value. There should be an efficient way of handling this scenario.

  • How to add extension fields and mashups to partner solution?

    To add extension fields and mashups I have log on to the system using a user with adaptation rights.
    There's no possibility to do that from within the UI designer, right?
    Now, if I adapt the screens with extension fields or by creating and adding mashups, how do I add these enhancements to my partner solution?
    Or in other words, how do I ship extension fields and mashups with my partner solution?

    Before you use the key user tools, you must "enable key user tools" in copernicus by right click on the solution. Now the changes will be added to the partner soltution transport order.
    But you can add extension field in copernicus as well by adding new item "business object extension" to the partner solution.

  • Web Service Access to a extension field

    Hello All:
       Scoping against solution capability, how easy, or at all possible, is to access a extension fields to a native ByD business Objects via web services? In my specific case, the E-Commerce Sales Order Creation Web Service.
       But the question is pretty general, This can be a data retrieve web services as well? Any limitations? does it needed to be rebuild by SAP? or can we generate them by ourselves?
       Also, if in future new extension required on web services, can this process be done after implementation and go live? Without too much trouble?
       Any documentation will be greatly appreciated! Thank You!

    This is doubtful as it is a Standard service (we use it for several different solutions).. and is the same across all tenants and I do not think it can be applied as a custom one off..
    asking your dev coach would probally be your best bet.
    Another solution for you would be to have a simple Read,Update Service you write that just deals with your extension fields... so after an order is created you can update your field on the sales order, or read the value given a specific sales order. 
    Unless this has changed it is my understanding that you have to add the Extension field via the Development studio not the Key user tools if you wish to have access to it in the Studio for releasing a webservice like I described above.(Most my work so far has involved integrations and the standard  webservices)

  • Help, please -  I need a box to pop-up when user hovers over a field with their mouse??

    I created a form with several drop-down fields / questions.  I would  like to create a box that pops up when the person who is filling out the  form hovers over the question/ field with his or her mouse.  The box  would contain additional information about the question that the person  might consider before they select the answer.  I don't want to clutter  the form (and not all form-filler-outers will want or need to see the  additional information) so I want it to pop up when the person hovers  over the question with their mouse.
    Can someone provide some help with how I can do this?
    I'm still new to this.
    Thank you!!!

    Hi,
    To follow on from radzmar, here is a summary of the features that are available/restricted depending on how you deploy your form.
    There are two ways to apply Reader rights, one is using Acrobat Standard (v9) or Acrobat Professional (v8). The other is using an Adobe server product called LiveCycle Reader Extensions ES2.
    You don't need script to apply the Reader rights to your form. Once you have applied the rights, users with Reader will be able to save the data in the form, however there may still be other restrictions in place, like attaching documents to the form or exporting XML data.
    There summary is also available in PDF, with screen shots, here: http://assurehsc.ie/blog/index.php/2010/05/using-livecycle-forms-in-acrobat-and-reader/
    Hope that helps,
    Niall

  • Customer Invoice Upload Tool - Can't get extension fields to populate

    In the documentation for the customer invoice upload documentation, it says to get the tag for your extension field in the Customer Invoice XML Output. No issues there. But when I add the extension field to the XML for the Customer Invoice Request Service Interface, the field never populates in the generated invoice request. Note that I cannot create a new XML Upload Service interface as a workaround because this is a 3.5 customer system
    The extension fields are in a different namespace from the Request Service Interface, so I've tried the two methods below to populate my Advertiser extension field. I've had no luck with either. Here's some sample XML from the beginning of the file. The files are also attached. Any help is appreciated.
    [ I also posted on the SCN where I  attached the test files.|http://scn.sap.com/thread/3237936]
    Method 1
    <?xml version="1.0"?>
    <CustomerInvoiceRequestRequest>
    <MessageHeader>
    <CreationDateTime/>
    </MessageHeader>
    <CustomerInvoiceRequest actionCode="04" reconciliationPeriodCounterValue="1">
    <BaseBusinessTransactionDocumentID>EXT_100001_TALINV</BaseBusinessTransactionDocumentID>
    <BaseBusinessTransactionDocumentTypeCode>29</BaseBusinessTransactionDocumentTypeCode>
    <ProposedInvoiceDate>2012-09-16</ProposedInvoiceDate>
    <Name>hhhc</Name>
    <ReferenceBusinessTransactionDocumentID>100001</ReferenceBusinessTransactionDocumentID>
    <Advertiser xmlns="http://sap.com/xi/AP/CustomerExtension/BYD/A03DP">
    <EXTAdvertiser00163E027E021ED1BFDF09124EFF4876_002>JUDSON</EXTAdvertiser00163E027E021ED1BFDF09124EFF4876_002>
    </Advertiser>
    <BusinessProcessVariantType>
    <BusinessProcessVariantTypeCode>1</BusinessProcessVariantTypeCode>
    <MainIndicator>true</MainIndicator>
    </BusinessProcessVariantType>
    Method 2
    <?xml version="1.0"?>
    <CustomerInvoiceRequestRequest>
    <MessageHeader>
    <CreationDateTime/>
    </MessageHeader>
    <CustomerInvoiceRequest actionCode="04" reconciliationPeriodCounterValue="1">
    <BaseBusinessTransactionDocumentID>EXT_100002_TALINV</BaseBusinessTransactionDocumentID>
    <BaseBusinessTransactionDocumentTypeCode>29</BaseBusinessTransactionDocumentTypeCode>
    <ProposedInvoiceDate>2012-09-16</ProposedInvoiceDate>
    <Name>hhhc</Name>
    <ReferenceBusinessTransactionDocumentID>100002</ReferenceBusinessTransactionDocumentID>
    <n1:EXTAdvertiser00163E027E021ED1BFDF09124EFF4876_002 xmlns:n1="http://sap.com/xi/AP/CustomerExtension/BYD/A03DP">JUDSON</n1:EXTAdvertiser00163E027E021ED1BFDF09124EFF4876_002>
    <BusinessProcessVariantType>
    <BusinessProcessVariantTypeCode>1</BusinessProcessVariantTypeCode>
    <MainIndicator>true</MainIndicator>
    </BusinessProcessVariantType>

    Hi Judson,
    Thanks for sharing this answer, i am also facing the same issue. But here in my case i have extension field in Items nodes and also got the xml node from customer invoice xml, like below but when i process the xml it adds invoice request but dont maps th "test" nodes data to that extended column.
    <n1:test_0LIGMSME2T388H1SZMFGTNHGN_Y38WD8BTY xmlns:n1="http://0008768412-one-off.sap.com/Y38WD8BTY_">test data</n1:test_0LIGMSME2T388H1SZMFGTNHGN_Y38WD8BTY>
    Could you please suggest what i am missing.

  • Problem with BAPI invocation in UDF

    Dear SDN-Experts,
    I have the following java code in an user defined function:
    JCO.Repository mRepository;
    JCO.Client mConnection = JCO.createClient(
    "101",
    "de",
    "frba02.buc.fristo.de",
    "10" );
    mConnection.connect();
    mRepository = new JCO.Repository( "SAPLookup", mConnection );
    JCO.Function function = null;
    IFunctionTemplate ft = mRepository.getFunctionTemplate( "BAPI_MATERIAL_GET_ALL" );
    function = ft.getFunction();
    JCO.ParameterList input = function.getImportParameterList();
    input.setValue( "1000" , "MATERIAL" );
    mConnection.execute ( function );
    JCO.Table unitsofmeasure=  function.getTableParameterList().getTable("UNITSOFMEASURE");
    mConnection.disconnect();
    return unitsofmeasure.getString("ALT_UNIT_ISO");
    As you can see, I try to execute "BAPI_MATERIAL_GET_ALL" with 1000 as "MATERIAL". When I test the same BAPI in the Target System with Transaction SE37 and 1000 as material, I get a table which has three rows. But when I execute the UDF with the same parameter (as above), I get the following runtime exception:
    Exception:com.sap.mw.jco.JCO$Exception: (106) JCO_ERROR_RESOURCE: Trying to access row values in a table which does not have any rows yet in class com.sap.xi.tf._MM_MT_KASSE__to_WPUWBW01_ method GetME$ 2270, com.sap.aii.mappingtool.tf3.rt.Context@24650c7a
    Could you help me please?
    Thanks in advance.
    Cheers
    Ehsan
    Edited by: Ehsan Baghi on Jul 11, 2008 4:58 PM

    Hi Ehsan !
            By the message error that you received, I think that is possible that the bapi is returning no records in the table.
            Sometimes, call an RFC or BAPI from java has different behavior that executing from SE37, because of field formatting for example. In your case, there is great chance that executing this BAPI in SE37, when you fill the Material field with "1000", internally it´s proccessed as "000000000000001000", and when you call this BAPI from a java program, the field is proccessed with the exact value that you passed: "1000".
            A good way to check this is logon in your SAP environment with the user that you are using in the java mapping to connect to SAP, run SE37 and open the source code of this BAPI, set a remote break point, and test your mapping, so you will see in the debugger, the exact value that is arriving to the BAPI from java, and the values that is being returned to java.
            I hope this helps !
            Best regards,
            Wilson

  • Extension fields in Advanced Find Form

    Hi, experts,
         I have four solutions in which I added one extension field to a standard BO.
         Let's say they are S1,S2,S3 and S4 respectively and all are of the same data type.
         I added each of them to the Advanced Find Form of the standard BO's OWL.(From Extensibility Explorer)
        The strange thing is when I enter some data in one extension field (just say S1), other extension fields (S2,S3,S4) are also filled with the   same data from S1.The deleting also have the same behavior.And when I delete one extension field(just say S2), the data in other extension fields (S1,S3,S4) are deleted too.
    Why is this happening?
    How can I control that?
    Thanks in Advance.
    Regards,
    Fred.

    Hi, Fernando.
        Thanks.
         I am sorry I was not quite clear on my question.
         Here is my Use Case.
         Let's say I have 4 solution, sol1, sol2, sol3, sol4.
         I have created an xbo of the same standard BO in each solution.
         My plan is to add one extension field namely ext1 (same name, same data type but different labels though)  to that standard XBO all in sol1,sol2,sol3 and sol4.
         And I have added each extension field to Advanced Find Form of the standard xbo's OWL in all of the four solutions.
        Each extension field is bound to a respective element.  (checked)
        I think my problem is I have unfortunately  given the same name to all the extension fields.
        Please confirm.
    Regards,
    Fred.

  • Problem with BAPI BAPI_REQUISITION_CREATE

    Hello,
    I have problems with BAPI BAPI_REQUISITION_CREATE. I need to create Purchase requisition for services. If I use BAPI BAPI_REQUISITION_CREATE, Purchasing requisition is created, but field NETWR in table EBNK is 0. If I create purchasing requisition manualy using transaction ME51N, field NETWR in table EBNK is filled with correct price.
    Can you pls. help me, what do I wrong in calling BAPI_REQUISITION_CREATE?
    Thanks&regards,
    Jirka

    Not sure if you got your answer or went to OSS for a resolution. But, as I was searching OSS for my issue, I came across the following note:
    Note 1498435 - BAPI_REQUISITION_CREATE: EBKN-NETWR is not updated

Maybe you are looking for

  • How can I get an mp3 into the music section on iPad without using a computer?

    The situation is this: I have no access to a computer. The iPad is all that I have to use. So I have never synced it to iTunes or anything. I am trying to make a video using the movie making app Pinnacle Studio (iMovie doesn't do enough for what I wa

  • Kernel panic after installing 10.7.4

    Hi, Unfortunately, I've installed the latest update 10.7.4 from apple. Since I've upgraded I had 8 Kernel panics happening sometimes without even touching the macbook pro. I'm really disappointed about this update. Do you have any ideas about this ?

  • Time Machine deleted ALL my backups

    I was using time machine for quite a while to backup my hard drive and then stopped it for a while. When I turned it back on today, it backed up my ENTIRE hard drive (50 GB) and deleted ALL the old files & time machine backups. The files and informat

  • How can I get the number of computers that a specific user had add to domain?

    Greetings In Win Srv 2K8 I know how to increase\decrease the total number of computers that any user can add to domain. (http://support.microsoft.com/kb/243327/en-us) but there is any way to get the number of computer accounts that a user had add? th

  • Why is my gmail inbox not refreshing without clearing cache

    without refreshing the cache on the browser, i cannot see any new gmail inbox contents. gmail site knows this as a fault and says to revert to a stable version of the browser. I am on 3.6, which, as far as i am aware, is the latest stable version.