CRMXIF_ORDER_SAVE - not getting any error log

Hi,
   I am using the FM CRMXIF_ORDER_SAVE for creating a quotation in CRM. I have poplulated all the required fileds but the FM is not returning any error value. Kindly help me in solving the problem. Please find the sample code below. Correct answers would be rewarded.
*& Report  ZTEST_BAPI
REPORT  ztest_bapi.
TABLES : crmd_orderadm_h , crmd_orderadm_i.
*DATA DECLARATION
CONSTANTS : c_x VALUE 'X'.
DATA : lt_header TYPE crmxif_bustrans_t.
DATA : ls_header TYPE crmxif_bustrans.
DATA : ls_item TYPE crmxif_bustrans_item.
DATA : lt_item TYPE crmxif_bustrans_item_t.
DATA : ls_orgdata TYPE crmxif_orgman.
DATA: ls_partner TYPE crmxif_partner,
itab_partner LIKE TABLE OF ls_partner.
DATA: BEGIN OF wa_temp_partner,
partner_no(10) TYPE c,
*partner_fct(8) TYPE c,
*partner_pft(4) TYPE c,
*pft_subtype(4) TYPE c,
END OF wa_temp_partner,
itab LIKE TABLE OF wa_temp_partner.
DATA: wa_bapiretm TYPE bapiretm,
wa_bapireti TYPE bapireti .
DATA: wa_bapiretc TYPE bapiretc.
DATA : it_item TYPE STANDARD TABLE OF crmxif_bustrans_item WITH HEADER LINE ,
wa_item TYPE crmxif_bustrans_item.
DATA : ws_langu LIKE sy-langu.
DATA: idx      TYPE sy-tabix.
Parameters
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS : proc_tp LIKE crmd_orderadm_h-process_type DEFAULT 'ZSRQ',
doc_date LIKE crmd_orderadm_h-posting_date DEFAULT sy-datum.
*logsysfi like header-LOGICAL_SYSTEM default 'CRDCLNT220'.
co_code like header-co_code default '0103',
p_sold TYPE kunnr default '2000000060',
p_ship TYPE kunnr default '2000000060'.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
PARAMETERS : item_num LIKE it_item-item_number,
material LIKE it_item-product_id. .
quantity like it_ITEM-TOTAL_QUANTITY default 10.
SELECTION-SCREEN END OF BLOCK b2.
START-OF-SELECTION.
*DATA POPULATION
  ws_langu = sy-langu. "Language variable
*POPULATE HEADER DATA FOR PO
  ls_header-process_type = proc_tp .
  ls_header-object_type = 'BUS2000115'.
  ls_header-posting_date = sy-datum.
  ls_header-descr_language = 'E'.
  ls_header-posting_date = sy-datum .
FILLING THE STRUCTURE OF THE PARTNER *
  ls_partner-partner_no = '212'.
  APPEND wa_temp_partner TO itab.
  LOOP AT itab INTO wa_temp_partner.
    MOVE-CORRESPONDING wa_temp_partner TO ls_partner.
    APPEND ls_partner TO itab_partner.
  ENDLOOP.
  MOVE itab_partner TO ls_header-partner-data.
FILLING THE STRUCTURE OF THE ORGMAN *
  ls_orgdata-sales_org = 'QR04'.
  ls_orgdata-dis_channel = '04'.
  ls_orgdata-division = '10'.
  MOVE ls_orgdata TO ls_header-orgdata-data.
FILLING THE STRUCTURE OF THE ITEM *
ls_item-product_id = item_num.
  ls_item-product_id = '000000000010002311'.
  ls_item-item_type = 'SQRS'.
crmxif_schedlin_i-order_qty = '6'
CRMXIF_BUSTRANS-VALID_FROM_EXT = 'sy-datum'
   APPEND ls_item TO lt_item.
APPEND ls_partner TO lt_partner.
  APPEND ls_item TO ls_header-item .
  APPEND ls_header TO lt_header.
*BAPI CALL
  CALL FUNCTION 'CRMXIF_ORDER_SAVE'
    EXPORTING
      data   = lt_header
    IMPORTING
      return = wa_bapiretm.
  IF sy-subrc = 0.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
  ENDIF.
  LOOP AT wa_bapiretm INTO wa_bapireti.
    LOOP AT wa_bapireti-object_msg INTO wa_bapiretc.
      WRITE: / wa_bapiretc-message , wa_bapiretc-type,wa_bapiretc-number.
      WRITE: / wa_bapiretc-message_v1,wa_bapiretc-message_v2.
    ENDLOOP.
  ENDLOOP.

Hi Partha,
Kindly check the following thread.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/406efa7e-388a-2910-f9b8-81913b0ca57f?QuickLink=index&overridelayout=true
XIF adapter
Hope it answers your Query
Regards,
Srikanth.Naga

Similar Messages

  • HT1473 i am not able to add mp4 file to itune.What may be the issue.While adding mp4 file i am not getting any error message from itune.Please help.

    I am not able to add mp4 or mov files to my itune.itune is also not throwing any error message,I am bit confused.Which formats of video file can be added to itunes??I have itunes of 11.0.2.26 version and iphone 4s-6.1.3 version.

    I am not able to add mp4 or mov files to my itune.itune is also not throwing any error message,I am bit confused.Which formats of video file can be added to itunes??I have itunes of 11.0.2.26 version and iphone 4s-6.1.3 version.

  • I am not able to purchase apps, I'm not getting any error alerts. I just get no response when I attempt to purchase. Also when I attempt to use a search engine to find a itunes app I just get redirected.

    I am not able to purchase itune apps. I do not receive a error message.
    I do not get a response when I attempt to purchase.
    When I use a search engine to find a app and it is to be
    Found at the itunes site I get redirected.

    Have you tried resetting and restarting >  iPhone, iPad, iPod touch: Turning off and on (restarting) and resetting
    Or restoring >  iTunes: Restoring iOS software

  • My iphone 5 is stuck in recovery mode. Followed apple support instructions...uninstalled and reinstalled all apple products.  Not getting any error codes, just cord/tunes pic. Itunes is not recognizing my phone so I cant even restore. Pls help !

    I just got this phone about 2 weeks ago.  I was prompted to do an update and did it... then my phone showed the image of the wire to the itunes symbol... so it's in recovery mode.  I have been working on this for hours!  I read tons of apple support procedures and followed them to the letter.... HT1414, TS3125, TS1538 etc.
    I uninstalled my itunes, quicktime... all the apple products like the instructions said. I reloaded everything and rechecked to make sure it was good.  Driver is showing up good with no problems.
    I would totally be fine with restoring it to the original settings... I've only had it for 2 weeks! But itunes won't even recognize the phone so I can't even hit the restore button.  This is so frustrating. I am running windows 7... and I ran all updates like the apple support instructions said. I checked updates with Norton.  All good. I did all the windows & norton updates before I uninstalled and reinstalled apple products. If I could only get itunes to even recognize the phone.
    The phone is not jailbroken... it was fresh from the factory... then that update!
    Please help.  I am without a phone.

    I may have fixed the issue. The errors in device manager were a driver error apparently windows didnt have appropriate drivers installed to allow itunes to recognize a device in recovery mode. I followed the paths in the guide above in more detail using this path ( http://support.apple.com/kb/TS1538 under if device not recognized while in recovery mode) to alleviate the issue update is now installing appropriately ( i hope).
    I will update if everything works correctly

  • My itunes.exe file will not load itunes...not getting any error message

    Need help with troubleshooting this problem. Looked at forum, have tried to repair itunes with the update feature.
    Quiktime will load. Anyone have any suggestions?

    hmmmmmm.
    okay, your call if you're happy with your 4.x ... but it's also worth checking on this possibility with the itunes 6.0.x with your set of symptoms. (NIS 2005 was the overwhelmingly likely suspect, but there are a few other possibilities to check on.)
    iTunes for Windows doesn't open after upgrading
    ... persisting with this, because sometimes an itunes 6.0.x error-message-free launch failure can be a bit of a barometer of other problems on a PC. (after the Norton thing and this thing, the most likely suspects are malware infections ... so i'm a wee bit worried for your PC.)
    love, b

  • Can't load any websites. I do not get any "error messages", the "enter" button has no effect in the address bar. Works fine in the FF search box and in IE.

    Entering a URL in the address bar and hitting enter does nothing. Neither the "enter" button or "address bar arrow", for going to the website, function. Website does not load and no error messages appear. "Enter" button works fine in the FF search box and in IE, so it's not my keyboard.
    Tried most of the recommended fixes under the "Error loading websites" article with the exception of "DNS refetching", as typing "about:config" in the location bar does no good as the "enter button" won't function. I've removed and re-added FF back into the windows firewall, removed ZoneAlarm from my system, edited proxy settings, deleted and reinstalled FF several times. NOTHING WORKS!!! I'm a die hard FF fan and this is KILLING me. Please HELP!!!

    You have a lot of information in packed in the "More system details..." (in the right-hand column), where it looks like you found a solution. If not take a look at "Problematic Extensions" the AVG Free installation of their "'''AVG Free Search'''" can cause such problems. Directions to fix that are specific and involve reinstalling AVG Free without the Link Scanner component.
    * http://kb.mozillazine.org/Problematic_extensions

  • TS1424 Why won't itunes store open. not getting any error

    Hello, can anyone please tell me why the itunes store will not open for me.

    It either A) shows me a white screen where the store should be, B) shows me the white screen with iTunes Store written in the middle or C) actually shows me the store, but as though it can't read all the sophisticated coding and wants to convert it into just plain ol' HTML.
    With those symptoms, I'd check through the following document:
    iTunes 10.5 for Windows: May see performance issues and blank iTunes Store
    (I've seen C reported before with the Bigfoot Networks variation of this sort of business.)

  • I can't import more than 5 questions in GIFT format, even though I am not getting any errors during the process.

    I created a GIFT file with 25 questions, but when I import into Captivate 8.0.1.242 I can only see the first 5 questions.  I have triple-checked my import file for any syntax or other problems, but it seems perfectly fine.
    Any ideas?

    The info on Adobe's online help needs to be updated.  You must save your text file in UTF-8 format, otherwise only the first five questions will be imported.

  • Psc 1600 won't print color. Do not get any error msgs.

    Cartridge is new.  Windows 7.  Test Page no color.  Have cleaned printer cartridges.  Need help.  Thanks!

    q67and68,
    This article covers the missing colors you are seeing. Give the steps as shot and let me know the results:
    http://goo.gl/J1Zwf
    Best of Luck!
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • Email not getting send: Error message 'No delivery to external email id

    Hi All,
    Whenever i am trying to send mail to external address from Business Workplace (Tcode: SBWP), it initially sets the status of the mail as waiting with message 'Will be sent after server date:server time'. But after 6 hours, its status changes to error with message 'No delivery to <external email id>.
    When i checked in error log (in SOST), it displays the following messages:
    1. Document sent
    2. Wait for Communications service
    3. No delivery to <external email id> (after 6 hours from Document sent/Wait for communications service time)
    Please suggest me how to resolve this issue.
    Thanks in advance.
    Regards,
    Shradhanjali Mishra

    Hi Shane,
    Extremely sorry for the late reply.
    I asked the BASIS team to fix the issue.. and i think they did some configuration as a result of which i am not getting any error msg now while sending email.
    I guess you also need to check with your BASIS team to fix this issue.
    Regards,
    Shradhanjali

  • I am trying to upload photos to a library but only some of them uploaded.  I even tried to rename and upload to a different library but I can't get it to work.  I don't get any error message it just doesn't respond.

    I have been uploading pictures for a while but ran into a problem last night that I cannot resolve.  I was uploading files starting in Revel and selecting the "add photos to album".  I selected 144 photos but only 88 uploaded.  I checked and confirmed that the missing ones are not in the library.  I tried to re-save and reinitiate the upload on Revel.  I then tried to save the files with a new name and upload to a new library.  Neither option worked.  I do not get any error message.  it just fails to upload. 
    Is there a system problem?  Any suggestions?

    Hi there,
    Are you uploading from the Revel Mac app or a browser from adoberevel.com or from a mobile device?
    Thanks!
    Glenyse

  • Why i am not getting an error???

    Dear sirs...
    i created an application to upload files to the database using JDeveloper 10.1.2.1.0 and UIX. The field used to store the files is an intermedia field.
    Whenever i upload the file greater than 2M i get an error message. i modified the application such that it uploads 5M. now for attachments greater than 5M i get no error messages at all. the uploaded file is truncated to 5M and i do not get any error message.
    my question is:
    why i am not getting any error message??? what are the possible causes of this??? Does any one face such an error???
    thanks for any help in advance
    best regrads

    I haven't heard of such a limitation. I would recommend creating a reproducible testcase and opening a TAR on Metalink so our support engineers can help debug the issue, report a bug if you are encountering one, and help you determine a possible workaround. Thanks.

  • I am getting a error IO when trying to upload multiple images within wordpress using the flash uploader. I do not get the error when uploading using explorer. The error only appears if I try uploading using firefox....any ideas?

    I am getting a error IO when trying to upload multiple images within wordpress using the flash uploader. I do not get the error when uploading using explorer. The error only appears if I try uploading using firefox....any ideas?

    Logged the call with SAP who directed me to 'Define settings for attachments' in IMG and setting the 'Deactivate Java Applet' & 'Deactivate Attachment versioning' checkboxes - problem solved.

  • I can't unlock the screen to access my macbook pro. When I enter the password it just jiggles. I'm not getting an error message, so I'm pretty certain that the password is correct. Any suggestions?

    I can't unlock the screen to access my macbook pro. When I enter the password it just jiggles. I'm not getting an error message, so I'm pretty certain that the password is correct. Any suggestions?

    I already checked that one.
    I'm baffled, especially since it will usually give you the Invalid user name or password entered message. I'm not getting that. Instead the password field just jiggles back and forth. Very odd.

  • I have a Canon MX882 and more often than note get an error message saying the printer is not connected. I check the printer and the get the message that the access point is accessed. I have reloaded the software and it worked for awhile. Any ideas?

    I have a Canon MX882 printer and more often than note get an error message that says "Printer not Connected." When I check the printer itself, I get confirmation that the access point is connected. I tried reloading the software and that seemed to have solved the problem for awhile but I'm experiencing the same problem. Any ideas what is causing this?

    Did you delete all receipts with iDVD in the file name  with either a .PKG or .BOM extension that reside in the HD/Library/Receipts folder and from the /var/db/receipts/  folder before installing the new copy?  If not then do so and delete the new application also.
    Click to view full size
    Then install iPhoto from the disk it came on originally and apply all necessary updaters: Apple - Support - Downloads
    OT

Maybe you are looking for