Set type creation and updation of the structure COMT_PROD_MAT_MAINTAIN_API

Hello Experts,
I've the below scenario,
I created new Org dependent Z set type and assigned to a category.
And I'm using the API - COM_PRODUCT_GETDETAIL_API to get the details about the material via the export parameter ES_MATERIAL_DATA which has the structure of COMT_PROD_MAT_MAINTAIN_API.
My doubt :
Whether the newly created Z set type structure will be automatically updated to this COMT_PROD_MAT_MAINTAIN_API? (In my case it has not happened)
I hope system has to append this structure automatically.
If not how to get this job done. Is there any settings to be done?
If not Whether I can append this structure manually? will it affect anywhere?
Kindly help me on this regard.
Thanks in Advance!
Regards,
Senthil.

Also Senthil,
I am pasting some sample code for your help. this should solve your issue
Also make sure the set type structures are appened in COM PRODUCT MAINTAIN API Structure else the updation logic doesn't work.
DATA:         ls_detail1          TYPE zmsr_detail_maintain,
        gs_set_typ      TYPE comt_prod_mat_maintain_api,
       gt_product_api       TYPE comt_product_maintain_api_tab,
        gs_product_api  TYPE comt_product_maintain_api,
        gs_text1        TYPE comt_prlgtext_maintain,
    fill the new comm_product
    gs_product_api-com_product-product_guid = g_product_guid.
    gs_product_api-com_product-product_type  = c_product_type.
    gs_product_api-com_product-logsys        = g_logsys.
    gs_product_api-com_product-valid_from    = g_valid_from.
    gs_product_api-com_product-valid_to      = g_valid_to.
    gs_product_api-categories                = gt_categories.
    gs_text1-data-stxh-mandt         = sy-mandt.
    gs_text1-data-stxh-tdobject      = c_product.                            "'PRODUCT'.
    gs_text1-data-stxh-tdid          = c_base.                               "'BASE'.
    gs_text1-data-stxh-tdspras       = c_en.                                 "'EN'.
    ls_line-tdline                   = gs_upload1-lg_text.
    APPEND ls_line TO lt_lines.
    CLEAR ls_line.
    ls_longtxt-lines    = lt_lines.
    gs_text1-data-lines = ls_longtxt-lines.
    APPEND gs_text1 TO gs_product_api-long_texts.
    gs_text-data-langu      = c_en.                                          "'EN'.
    gs_text-data-short_text = gs_upload1-msr_desc.
    gs_text-data-valid_from = g_valid_from.
    gs_text-data-valid_to   = g_valid_to.
    gs_text-data-logsys     = g_logsys.
    APPEND gs_text TO gs_product_api-short_texts.
    CLEAR gs_text.
    APPEND gs_product_api TO gt_product_api.
      ls_detail1-data-zz0010       = gs_upload1-zz0010_1.
      ls_detail1-data-zz0011       = gs_upload1-zz0011_1.
      ls_detail1-data-zz0012       = gs_upload1-zz0012_1.
      ls_detail1-data-zz0013       = gs_upload1-zz0013_1.
      ls_detail1-data-zz0014       = gs_upload1-zz0014_1.
      ls_detail1-data-zz0015       = gs_upload1-zz0015_1.
      ls_detail1-data-zz0016       = gs_upload1-zz0016_1.
      ls_detail1-data-zz0017       = gs_upload1-zz0017_1.
      ls_detail1-data-zz0018       = gs_upload1-zz0018_1.
      ls_detail1-data-zz0019       = gs_upload1-zz0019_1.
      ls_detail1-data-zz0020       = gs_upload1-zz0020_1.
      ls_detail1-data-zz0021       = gs_upload1-zz0021_1.
      ls_detail1-data-zz0022       = gs_upload1-zfil_nbr.
      ls_detail1-data-product_guid = g_product_guid.
      ls_detail1-data-logsys       = g_logsys.
      ls_detail1-data-valid_from   = g_valid_from.
      ls_detail1-data-valid_to     = g_valid_to.
      APPEND ls_detail1 TO gs_set_typ-zmsr_detail.
      CLEAR ls_detail1.
      APPEND gs_set_typ  TO gt_set_typ.
      CLEAR gs_set_typ.
      CALL FUNCTION 'IB_CONVERT_INTO_TIMESTAMP'
        EXPORTING
          i_datlo     = sy-datum
          i_timlo     = sy-uzeit
        IMPORTING
          e_timestamp = g_valid_from.
      APPEND gs_set_typ  TO gt_set_typ.
      CLEAR gs_set_typ.
*-------Mainten. Functions for Materials
      CALL FUNCTION 'COM_PROD_MATERIAL_MAINTAIN_API'
        EXPORTING
          it_product      = gt_product_api
          it_set          = gt_set_typ
          iv_commit_work  = 'X'
          iv_update_task  = 'X'
          iv_enqueue_mode = 'E'
        IMPORTING
          et_bapireturn   = gt_bapireturn.
      IF sy-subrc = 0.
      Commit the BAPI
        COMMIT WORK .
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
HOpe this helps !!!!!

Similar Messages

  • Automatic TO Creation and Confirm for the 321 Mvt type

    Hello Experts,
    Like to know the customisation invovlved for automatic TO creation and confirmation for the 321 movement type in which QM is activated.
    I have already activated in OMKZ as below
    1.Automatic TO for 321 mvt ytpe
    2.TO item to be confirmed immediately
    3.Propose confirmation
    Table T333 -AUTTA
              T333-SQUIT &
              T333-VQUIT is activated.
    Please let me know any other settings to be performed
    Regards
    Krishna

    Hello Experts,
    I am trying to create the Automatic TO and TO confirmation for the mvt type 321.
    I made the below settings
    I have activated in OMKZ as below
    1.Automatic TO for 321 mvt ytpe   -"A"
    2.TO item to be confirmed immediately  - tick mark
    3.Propose confirmation   - tick mark
    Table T333 -AUTTA
    T333-SQUIT &
    T333-VQUIT is activated.
    I have activated in OMKX as below
    Table T321-TBFKZ Immediate TO Creation with "A"
    T321-TAFKZ TR creation with "X"
    After doing the settings i am not able to see the Posting change number in the Material document created for the mvt type 321.
    Please let me know how to create the Posting chnage notice for the material document and how to convert the Posting change notice to automatic TO and confirmation.
    Thanks & Regards
    Krishna
    Edited by: Hariharan krishna on May 25, 2011 8:01 AM

  • Face Time was unavailable, even in SETTING= PHONE, when I updated to the new network settings.

    Face Time was unavailable, FACE TIME switch is not even showing in SETTING=>PHONE, when I updated to the new network settings.

    There is no way to consolidate iTunes accounts.
    Setting up an iPhone has never required creation of a new Apple ID.
    You've apparently purchased content with both Apple ID's.  Sign into the device with the correct Apple ID and sync the content.

  • Finding Plant Creation and Updation Date

    Hi all,
    I just want to find out if it is possible to find out Plant Creation and Updation Date using ABAP statements. Does it get stored in CHDHR or CDPOS and if yes, then what is the object Key.
    Thanks

    Check Report RSVTPROT with table name T001W for Plant changes. I do not think it updated CDHDR.
    You can SUBMIT this report and get back the list in your custom program.
    How to get list back in your custom program refer
    http://scn.sap.com/thread/3147016

  • I cannot send an email from my iPad 2? No problem receiving, why does this happen? Have tried the suggestions for setting up email and after doing the sync mail through iTunes receiving worked great but still cannot send? Any help would be great

    I cannot send an email from my iPad 2? No problem receiving, why does this happen? Have tried the suggestions for setting up email and after doing the sync mail through iTunes receiving worked great but still cannot send? Any help would be great!

    The fact that you can receive means you have a valid e mail address, and have established the connection to the incoming server, so all of that works.  Since the send does not work, that means your outgoing server is rejecting whatever settings you used formthe outgoing set up.  Try them again. 
    Google your particular isp, and ipad and many times you will find the exact settings needed for your isp.  Or tell us here, and soneone else may be on the same isp.  Some mail services need you to change a port, or have a unique name for the outgoing server.  
    Kep trying.

  • Can we use both INSERT and UPDATE at the same time in JDBC Receiver

    Hi All,
    I would like to know is it possible to use both INSERT and UPDATE at the same time in one interface because I have a requirement in which I have to perform both the task.
    user send the file which contains both new and old record and I need to save those in MS SQL database.
    If the record exist then use UPDATE otherwise use INSERT.
    I looked on sdn but didn't find any blog which perform both the things at the same time.
    Interface Requirement
    FILE -
    > PI -
    > JDBC(INSERT & UPDATE)
    I am thinking to use JDBC Lookup but not sure if it good to use for bulk record.
    Can somebody please suggest me something or send me the link of any blog or anything to solve this problem.
    Thanks,

    Hi ,
              If I have understood properly the scenario properly,you are not performing insert and update together. As you posted
    "If the record exist then use UPDATE otherwise use INSERT."
    Thus you are performing either an insert or an update which depends on outcome of a search if the records already exist in database or not. Obviously to search the tables you need " select * from ...  where ...." query. If your query returns some results you proceed with update since this means there are some old records already in database. If your query returns no rows  you proceed with "insert into tablename....." since there are no old records present in database.
      Now perhaps the best method to do the searching, taking a decision to insert or update, and finally insert or update operation is to be done by a stored procedure in MS SQL database.  A stored procedure is a subroutine available to applications accessing a relational database system. Here the application is PI server.   If you need further help on how to write and call stored procedure in MS SQL you can look into these links
    http://www.daniweb.com/web-development/databases/ms-sql/threads/146829
    http://www.sqlteam.com/article/stored-procedures-parameters-inserts-and-updates
    [ This part you can ignore, Since its not sure that you will face this situation
        Still you might face some problems while your scenario runs. Lets consider this scenario, after the stored procedure searches the database it found no rows. Thus you proceed with an insert operation. If your database table is being accessed by multiple applications (or users) other than yours then it is very well possible that after the search operation completed with a null result, an insert/update operation has been performed by some other application with the same primary key. Now when you are trying to insert another row with same primary key you get an error message like "duplicate entry not possible for same primary key value". Thus you need to be careful in this respect. MS SQL has a feature called "exclusive locks ". Look into these links for more details on the subject
    http://msdn.microsoft.com/en-us/library/aa213039(v=sql.80).aspx
    http://www.mssqlcity.com/Articles/Adm/SQL70Locks.htm
    http://www.faqs.org/docs/ppbook/r27479.htm
    http://msdn.microsoft.com/en-US/library/ms187373.aspx
    http://msdn.microsoft.com/en-US/library/ms173763.aspx
    http://msdn.microsoft.com/en-us/library/e7z8d5hf(v=vs.80).aspx
    http://mssqlserver.wordpress.com/2006/11/08/locks-in-sql/
    http://www.mollerus.net/tom/blog/2008/03/using_mssqls_nolock_for_faster_queries.html
        There must be other methods to avoid this problem. But the point is you need to be sure that all access to database for insert/update operations are isolated.
    regards
    Anupam

  • How do I type Hebrew and English on the same page

    How do I type Hebrew and English on the same page in Indesign?

    What version of InDesign are you using? And on what operating system? Switching keyboard ("input methods") is in your OS, not in InDesign. InDesign has had the capability to display right-to-left languages since CS4, but only the Middle East edition has the abilities to actually manipulate Hebrew text. If you're trying to do a bilingual, bidirectional document, you'll need the ME edition. If you are a CC subscriber, it comes with your subscription; if you are not, you'll need to buy another version of ID, or a plugin that will allow you to access those RTL features.

  • My iPod Touch 2g is unresponsive to the touch completely. I have restored it twice and updated it, the water sensor shows it has not been wet. Not jail-broken.How do i fix this and will Apple fix it? Thanks

    I have restored it twice and updated it, the water sensor shows it has not been wet. Not jail-broken and exterior buttons all work.  It seems to have problems connecting and being found by a computer (Windows). How do i fix this and will Apple fix it? Thanks

    lol yea when i inserted the link i just copied and pasted thats why that happend... Lets try again... http://www.felixbruns.de/iPod/firmware/
    Anyways when I go to it theres a drop-down list and you select the one you want and I know the number next to it identifies the model but the thing is they don't have my model listed so my main question is, what version eg. 2.1.1. or 2.2.1 etc. etc. etc. etc. will work with my model of ipod touch which is the 2g Model A1288?
    Does anybody know? Does it work with any firmware thats for 2G ipod touches or do i have to get firmware thats model specific?

  • I clicked on an  upgrade box and when the upgrade was done my ipad wanted my passcode to open it up.  I have not had to use a passcode to open up my ipad since I set it up and cannot remember the passcode.  Every time I try a passcode it disables

    I clicked on an upgrade box on my ipad and when the upgrade was done my ipad wanted my passcode to open it back up.  I have not had to use a passcode to open up my ipad since I set it up and cannot remember the passcode.  Every time I try a passcode it disables for longer and longer.  It is now disabling for an hour at a time.

    FORCE IPAD INTO RECOVERY MODE
    1. Turn off iPad
    2. Turn on computer and launch iTunes (make sure you have the latest version of iTune)
    3. Plug USB cable into computer's USB port
    4. Hold Home button down and plug the other end of cable into docking port.
    DO NOT RELEASE BUTTON until you see picture of iTunes and plug
    5. Release Home button.
    ON COMPUTER
    6. iTunes has detected iPad in recovery mode. You must restore this iPad before it can be used with iTunes.
    7. Select "Restore iPad"...
    Note:
    1. Data will be lost if you do not have backup
    2. You must follow step 1 to step 4 VERY CLOSELY.

  • How to get the document type, name and revision from the search page cv04n

    Hello,
    After performing cv04n and getting a list of documents satisfying the search criteria, how can I then get the document type, name and revision of the selected document using ABAP?
    Thanks

    HI,
    IN table DRAW... u have Document type, Version and document number.
    In Table DRAT also u get Document Type, Version, Number and Description of Doucment.
    Regards
    SAB

  • Cond. types 0K05 and 0K04 have the same condition function in pric. proc.

    Hello Friends,
    I am getting the error in pricing procedure as follows:
    Cond. types 0K05 and 0K04 have the same condition function in pric. proc. 0CRM01
    Message no. CRM_LEASING_GEN203
    Why this error is coming ? Could any one please help me with this.
    Regards,
    Venkat

    Hi Venkat,
    This errors seems to be very rare. I cam e accross one similar issue which has been saved by implementing note 1524217.
    Can you please check if it matches with your release and if yes implement it.
    Best regards
    Christophe

  • I have a macbook pro core i7 mid 2012 And update to the latest version 10.8.4 system after updating the system I have the problem appeared to take off the device and stops at the apple logo for about 5 minutes and then enters the desktop How can I solve t

    I have a macbook pro core i7 mid 2012
    And update to the latest version 10.8.4 system after updating the system I have the problem appeared to take off the device and stops at the apple logo for about 5 minutes and then enters the desktop How can I solve this problem and thank you

    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Step 1
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Enter "BOOT_TIME" (without the quotes) in the search box. Note the timestamps of those log messages, which refer to the times when the system was booted. Now clear the search box and scroll back in the log to the last boot time when you had the problem. Select the messages logged after the boot, during the time something abnormal was happening. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V).
    For example, if the problem is a slow startup taking three minutes, post the messages timestamped within three minutes after the boot time, not before. Please include the BOOT_TIME message at the beginning of the log extract.
    If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message.
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.
    Step 2
    Still in Console, look under System Diagnostic Reports for crash or panic logs, and post the entire contents of the most recent one, if any. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if present (it may not be.) Please don’t post shutdownStall, spin, or hang logs — they're very long and not helpful.

  • I cannot get itunes to update. I have version 10. When I either 'check for updates' or try and update thru the apple menu, it doesn't update.

    I cannot get itunes to update. I have version 10. When I either 'check for updates' or try and update thru the apple menu, it doesn't update. What should I do?

    Hi gnaksung, 
    Thanks for participating in the Apple Support Communities. 
    It seems like you're trying to update iTunes 10 on your Mac, but the update options are not working. 
    You may find the troubleshooting tips and download method in this article helpful with updating iTunes:
    Troubleshooting iTunes installation on Mac OS X - Apple Support
    If you're currently using OS X 10.6.8, see this link for the iTunes 11.4 download, which is the latest version that can be installed:
    iTunes 11.4 for OS X 10.6
    Sincerely,
    Jeremy 

  • Windows installer package not running or installing properly error when i try to install and update to the new icloud control panel.

    i get a windows installer package not running or installing properly error when i try to install and update to the new icloud control panel.

    Okay ... so it's not one of the cases of bodged up ACLs on the Apple folder in Common Files. (That's been underlying a few of the recalcitrant E7W5s.
    Just in case, let's try the fixit from the following document:
    Fix problems with programs that can't be installed or uninstalled

  • HT4623 This really ***** that they sent out and update to the iPhone ISO6 and I can't send or receive pics! Being that its apple you would think they would know better than to send out a bad update like this! I'm paying for a service and I can even use it

    This really ***** that they sent out and update to the iPhone ISO6 and I can't send or receive pics! Being that its apple you would think they would know better than to send out a bad update like this! I'm paying for a service and I can even use now!!! I'm very upset! Think about canceling my iPhone 5 order! This is terrible!

    Wahhhhhhhhhh! Wahhhhhhhhhh!
    Are you over your little tantrum now?  Do you want help you would like to continue to act like a toddler?
    If you want help, try telling us what happens when trying to send pics.  Any errors?
    If you want to whine... go somewhere else.

Maybe you are looking for

  • Problem with statement after upgrading to 11g

    Hello, We recently upgraded to 11g from 9i and one of our statements we routinely use no longer works. The statement is: delete from ALLEMPLOYEES x where exists( (select * from ALLEMPLOYEES where email_id=x.email_id) minus (select * from X_ALLEMPLOYE

  • Chinese character in RecordStore

    Hi all, I am new to j2me. is it possible to key in Chinese character and store it in recordstore, and i can display the character back when i view the record? i have go through many examples of j2me encoding. but i still don't have any idea about how

  • Can I take a broken USB wire to Apple Store for replacement (within Warranty)?

    That's my question, the USB is broken on both sides, can I just walk into the Apple store, show them my iPhone in warranty and get a replacement?

  • Viewing multiple calendars on an iPod

    I successfully sync'd my iCal file that contains 7 calendars with an iPod Touch. When viewing them on that iPod, I found that I can view any ONE of those 7 calendars or see ALL of them at once, but nothing in between. Is there a way to choose and vie

  • Q190 Motherboard - where can I buy one?

    Hi folks, Our ThinkCentre Q190 died - one month after warranty ended. No video out, seems like the motherboard is gone. I'd like to replace it; where can I purchase a replacement motherboard for this animal? Thanks for any help.