How to create SO by refer a QT with  BOM items by BAPI

I want to create Sales order according to exist Quotations and I used the BAPI "BAPI_SALESORDER_CREATEFROMDAT2".
I tested for those normal case, no problem, but if in Quotation have some BOM material,
such as
in a QT 600000000
item        high item   materil   quantity
000010  000000     M1         2                    <--BOM header material
000020  000010     M2         2                    <--BOM son material
000030  000010     M3         2                    <--BOM son material
if a set the parameters of BAPI item and schedule line table like normal case
BAPI-ITEM table
item        high item   materil   quantity  refer QT     refer item   refer category
000010  000000     M1         2            600000000  000010        B
000020  000010     M2         2            600000000  000020        B 
000030  000010     M3         2            600000000  000030        B  
if a set the parameters of BAPI item and schedule table like normal case
BAPI-schedule line table  
item        schedule line    quantity
000010  0001                 2           
000020  0001                 2           
000030  0001                 2           
after BAPI executed
Sales order will be
item        schedule line materil   quantity 
000010   0001             M1         2           
000020   0001             M2         2  
000020   0002             M2         2           
000030   0001             M3         2           
000030   0002             M3         2      
i checked the logic in BAPI
for the first item (BOM header item), system will automatically add its all son item to schedule line table due to BOM master
and for those automatically added items, they have no reference doc(Quotation), so the second and third Quotation items' status is still open, just the first item's status is completed in SD flow.
anyone know how to solve it?

Hi Ram,
Do you need to make changes in already existing rows or you need to create a new row for every line item?
I think when the first time your view is getting displayed the node which is bound to table uie is empty and hence the table is grayed. If you want input enabled rows then you need to bind few empty rows using the supply_function of the node.
data lt_tables type wd_this->elements_table.
data ls_table  like line of lt_table.
append ls_table to lt_table.
append ls_table to lt_table.
node->bind_table( lt_table ).
Here table is the node which is bound to the table uie.
Now when the first time view is displayed you will have 2 rows ready for input.
To add more input enabled rows create a button and add empty lines in the action method assigned to button.
Thanks,
Abhishek

Similar Messages

  • How to create a record for table PLAF with order type 'NB'.

    How to create a record for table PLAF with order type 'NB'(standard purchase order).
    who can tell me the T-code or some usefull information?
    Thanks.

    Hi
    This will be updated automatically when generate planned orders thru MRP. (MD02)
    regards
    Srinivas

  • How to created exit for CS02 transaction to maintain bom details of a mater

    hi ,
         plz explain how to created exit for CS02 transaction to maintain BOM details of a material. what is the BOM component . give me sample example.

    Hi,
    these are the user-exits for CS02
    Transaction Code - CS02                     Change Material BOM
    Exit Name           Description
    PCSD0001            Applications development R/3 BOMS
    PCSD0002            BOMs: Customer fields in item
    PCSD0003            BOMs: Customer fields in header
    PCSD0004            BOM comparison
    PCSD0005            BOMs: component check for material items
    PCSD0006            Mass changes user exit
    PCSD0007            Check changes in STKO
    PCSD0008            WBS BOM: Customer-specific explosion for creating
    PCSD0009            Order/WBS BOM, determine URL page
    PCSD0010            Order/WBS BOM, determine explosion date
    PCSD0011            Knowledge-based order BOM, parallel update
    PCSD0012            Customer - Mat. number/mat. number during material exchange
    PCSD0013            Customer-specific processing of an explosion for BOM browser
    Regards
    Nilesh

  • How to create a service call for more then one item

    Hi All,
            How to create a service call for more then one item. i.e. the service call should be logged for more then one item

    As you noticed this is not possible by design.
    Maybe you could have a dummy item for that purpose and register the real items to be handled in a UDT...
    HTH

  • How to create a index on a column with type clob

    how to create a index on a column with type clob

    You should have a look to Oracle Text to check if Oracle Text indexing features can meet your needs:
    http://download.oracle.com/docs/cd/E11882_01/server.112/e16508/cncptdev.htm#CNCPT1537

  • Can anyone please guide me how to create a table like employe table with 10

    Hi,
    can anyone please guide me how to create a table like employe table with 10colums.
    after that we need to update the colums with personal details......like name1,name2,address,city,zip...etc.
    using the RFC we need to update the personal details coulums (either select query or Insert command)
    if you have any program logic similar to this requirement please share with me...that would br greatly helpfull to me...
    thanks in advance
    srinivas

    Hi....
    We are having one table and now i am going to update that table's fields...
    for that in RFC function module we need to enter the fields in importing parameters (which are mandtory in table)
    and in source code just write like following....
    ( try to under stand that it contains some previous used table nad field and stucture and work area and function module names)
    FUNCTION ZL2C_UPDATE_MYCUSTOMER.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(USR_ID) TYPE  USRID
    *"     VALUE(LOGO_ID) TYPE  KUNNR
      DATA ls_mycust TYPE zl2cmy_customer.
      DATA: name1 TYPE name1_gp.
      DATA: sharpoint_url TYPE url.
      ls_mycust-usr_id        = usr_id.
      ls_mycust-logo_id       = logo_id.
      SELECT SINGLE name1 FROM kna1 INTO name1 WHERE kunnr = logo_id.
        ls_mycust-name1       = name1.
        SELECT SINGLE sharpoint_url FROM zl2c_CUSDASHBRD INTO sharpoint_url WHERE logo_id = logo_id.
          ls_mycust-sharpoint_url = sharpoint_url.
          INSERT into zl2cmy_customer values ls_mycust.
          COMMIT WORK.
        ENDFUNCTION.

  • How to create a view object and attach with extended AM

    Hi,
    I tried to create new vo and attach this vo with the extended AM. But it is throwing error like 'PC.NAME : invalid identifier' (Actually this PC.NAME is exiting one).
    Now i want to know how to create a view object similar like seeded one but with one additional condition in the where clause.
    It is possible though extension, but i want to create two view object similar like seeded one, one with some other condition in the where clause
    and another one with some other condition.
    So for my requirement, i'll extend one VO and i'll add my condition but how to do it for second condition.
    But i want same seeded VO with two different condition.
    Any suggestions please,
    SAN

    SAN,
    There is no need to attach the newly created VO with extended AM. You need to attach the same with the standard AM.
    Regards,
    Gyan

  • How to create schema for Header and Footer with pipe delimiter file BPEL11g

    Hi all,
    I have issule creating Schema for Header and Footer with body file .The file format is Pipe delimiter.The following format below like is...
    Softeware Components:File Adapter(Read) 11g,
    1|1211|000|577|5444
    1|0000|57|6988|4554|sfdgh|5448|3333|ituu|44445|55546|544|788|7788
    1|0000|57|6988|4554|sfdgh|5448|3333|ituu|44445|55546|544|788|7788
    1|0000|57|6988|4554|sfdgh|5448|3333|ituu|44445|55546|544|788|7788
    1|0000|57|6988|4554|sfdgh|5448|3333|ituu|44445|55546|544|788|7788
    1|0000|57|6988|4554|sfdgh|5448|3333|ituu|44445|55546|544|788|7788
    1|0000|57|6988|4554|sfdgh|5448|3333|ituu|44445|55546|544|788|7788
    1|4544|000|yted
    I hope get the sollution for this from this Forum..Please help me out..Thankyou.

    You mean how many rows or columns..?
    If coloumns means 5 and rows only one(1).

  • How to create a shortcut for desktop as with IE?

    I've switched my browser to "Firefox" from 'Internet Explorer and would like to know how to create a shortcut for my desktop.

    You can drag the favicon on the left end of the location bar onto the desktop to create a shortcut.
    You can also use an extension.
    * SaveLink: https://addons.mozilla.org/en-US/firefox/addon/savelink/
    * Deskcut: https://addons.mozilla.org/en-US/firefox/addon/deskcut/

  • How to Create a Custom Color Chooser/Palette with 16 or 24bit Color Support

    Hi All,
    I need some help on how to create a color palette/chooser with 16 bit or 24 bit color options available
    First setting up the context:
    I am developing an application which allows designing some GUI screens by adding various controls.
    Now these GUI Screens developed are compiled and downloaded into a series of display devices with each device having a different color support (For e.g. 256 colors, 16 bit, 24 bit and 32 bit).
    Now according to the selected device i would need to provide the "Color Chooser" with only those colors that are supported by the device. SO I need to design a Color Palette(s)/Chooser(s) with 16 bit, 24 bit or 32 bit color options
    Could anyone help me out on how to create such palette? A piece of sample code would be a great help
    Best Regards

    It is not that simple... reason I almost never use those old captions anymore but replaced them by shapes (much easier to format).
    Have a look at the available captions: for each caption you'll need a bmp and a fcm file, and follow naming conventions. See:
    http://helpx.adobe.com/captivate/using/text-captions.html#creating_custom_text_caption_sty les

  • How to create Archiving Rules in Outlook 2011 with Mavericks

    I am trying to create an email archive with Outlook 2011 and Mavericks 10.9.2. When I attempt to select the folder I created for the archive, it cannot be found, even after I enter the folder name in the search. Anyone conquer this issue?

    Hi Louis Le!
    Here is an article that can show you how to create events in Calendar and invite others to it:
    Calendar: Invite others to an event
    http://support.apple.com/kb/PH11518
    Thanks for using the Apple Support Communities!
    Cheers,
    Braden

  • How to create an export of APEX application with DB?

    How to create the common script of Application an Data Base?
    What is the best way to make an update of my application on host machine, if I develope my application in personal one?
    Regards, Kostya

    Thanx for your reply's
    If I understand the tutorial correctly I should do
    something like this to start the map:
    Map<String, myClass> myMAP = new HashMap<String,
    MyClass>();
    and something like this to add a new instance of the
    class every time:
    myMAP.put(myString, new myClass());
    So this would result a link between the Strings and
    the instance of the Class?
    Thanks
    Message was edited by:
    JasperLevinkyep. the String is the key, and the MyClass instance is the value. to get the value out of the map, use map.get(key)

  • How to create a omniportlet for oracle portal with apex

    Hello everyone!
    Is there someone who knows how to create a omniportlet?
    This is for openning an application in apex from oracle portal using single sign on.
    Could you explain me step by step how to do this please?
    Thank you.
    Regards

    Hello Erik,
    Please check if the following can help you - http://www.oracle.com/technology/products/database/application_express/howtos/omniportlet_index.html .
    Regards,
    Arie.

  • HOW TO CREATE  BADI IN ECC 6.0 with Enhanance Spot?

    HI,
          Anyone let me know how to create BADI in ECC 6.0 , which have mandtory to create enhanance spot before to create badi?  I dont understand the concept of Enhanance Spot and what is the purpose to create that . Will u plz let me know step wise procedure to create badi ...
    Thanks,
    saurin.

    Hi,
    Implementing Business Add-Ins (BADI)
    The use of object orientated code within SAP has lead to new method of enhancing standard SAP code called
    Business Add-Ins or BADI's for short. Although the implementation concept is based on classes, methods and
    inheritance you do not really have to understand this fully to implement a BADI. Simply think of methods
    as a function module with the same import and export parameters and follow the simple instructions below.
    Steps:
    1. Execute Business Add-In(BADI) transaction SE18
    2. Enter BADI name i.e. HRPBSGB_HESA_NISR and press the display
    button
    3. Select menu option Implementation->Create
    4. Give implementation a name such as Z_HRPBSGB_HESA_NISR
    5. You can now make any changes you require to the BADI within this
    implementation, for example choose the Interface tab
    6. Double click on the method you want to change, you can now enter
    any code you require.
    7. Please note to find out what import and export parameters a
    method has got return the original BADI definition
    (i.e. HRPBSGB_HESA_NISR) and double click on the method name
    for example within HRPBSGB_HESA_NISR contract is a method
    8. When changes have been made activate the implementation.
    http://esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
    http://esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
    http://esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
    http://esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
    http://esnips.com/doc/365d4c4d-9fcb-4189-85fd-866b7bf25257/customer-exits--badi.zip
    http://esnips.com/doc/3b7bbc09-c095-45a0-9e89-91f2f86ee8e9/BADI-Introduction.ppt
    SEE THE LINKS REGARDING SPOT
    /people/thomas.weiss/blog/2006/01/24/what-the-new-enhancement-framework-is-for-150-its-basic-structure-and-elements-for-beginners
    /people/thomas.weiss/blog/2006/03/15/the-new-enhancement-framework-part-2--what-else-you-need-to-know-before-building-an-enhancement
    /people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series
    Regards
    Kiran Sure

  • How to create Web Service Client from wsdl with digital signature?

    Please, help me to create Web Service Client from wsdl with digital signature. I know create Web Service client from wsdl file and I know how to add digital signature to XML with jwsdp, but I don't know how to do it together.
    Thanks.

    I'm handling security wit JAX-WS handler. So I insert "manually" ws-security tag and I encrypt (and sign) message parts.
    On client side, all works fine, but on server side I obtain:
    ---Server Inbound SOAP message---|#]
    Decrypting message and rebuilding Valuees... |#]
    Starting decrypt|#]
    . dectypted.!
    --found following string: <ns1:addiziona><num1>80</num1><num2>22222</num2></ns1:addiziona>|#]
    ...MESSAGE Restored.|#]
    <?xml version="1.0" ?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:ns1="http://calculator.me.org/" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><soapenv:Body><ns1:addiziona><num1>80</num1><num2>22222</num2></ns1:addiziona></soapenv:Body></soapenv:Envelope>|#]
    Error in decoding SOAP Message
    Error in decoding SOAP Message
            at com.sun.xml.ws.encoding.soap.server.SOAPXMLDecoder.toInternalMessage(SOAPXMLDecoder.java:89)
            at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.toMessageInfo(SOAPMessageDispatcher.java:187)
            at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher$SoapInvoker.invoke(SOAPMessageDispatcher.java:571)
            at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.receive(SOAPMessageDispatcher.java:145)
            at com.sun.xml.ws.server.Tie.handle(Tie.java:88)
            at com.sun.enterprise.webservice.Ejb3MessageDispatcher.handlePost(Ejb3MessageDispatcher.java:160)
            at com.sun.enterprise.webservice.Ejb3MessageDispatcher.invoke(Ejb3MessageDispatcher.java:89)
            at com.sun.enterprise.webservice.EjbWebServiceServlet.dispatchToEjbEndpoint(EjbWebServiceServlet.java:178)
            at com.sun.enterprise.webservice.EjbWebServiceServlet.service(EjbWebServiceServlet.java:109)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
            at com.sun.enterprise.web.AdHocContextValve.invoke(AdHocContextValve.java:100)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
            at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:71)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
            at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
            at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    Caused by: javax.xml.ws.soap.SOAPFaultException: Cannot find the dispatch method
            at com.sun.xml.ws.encoding.soap.SOAPDecoder.raiseFault(SOAPDecoder.java:674)
            at com.sun.xml.ws.encoding.soap.server.SOAPXMLDecoder.decodeDispatchMethod(SOAPXMLDecoder.java:152)
            at com.sun.xml.ws.encoding.soap.SOAPDecoder.decodeBodyContent(SOAPDecoder.java:337)
            at com.sun.xml.ws.encoding.soap.SOAPDecoder.decodeBody(SOAPDecoder.java:327)
            at com.sun.xml.ws.encoding.soap.SOAPDecoder.decodeEnvelope(SOAPDecoder.java:250)
            at com.sun.xml.ws.encoding.soap.server.SOAPXMLDecoder.toInternalMessage(SOAPXMLDecoder.java:81)
            ... 29 more
    |#]
    --->handleFault O_o<---|#]If you have any idea for solving my problem, then I can post my simple example :(
    Bye!

Maybe you are looking for