Order quantity error in VA01 BDC please some one reply

i have done a bdc  f.m for va01 with the items in import table but in all screen mode  when the values for order quantity is entered  it shows an information error to enter order quantity but as far as i know the coding is right...
my code is..
FUNCTION zfm_sales_ord_create2.
""Local Interface:
*"  IMPORTING
*"     VALUE(I_HEADER_DETAILS) LIKE  ZVA01HEAD STRUCTURE  ZVA01HEAD
*"  EXPORTING
*"     VALUE(SUBRC) LIKE  SYST-SUBRC
*"  TABLES
*"      MESSTAB STRUCTURE  BDCMSGCOLL OPTIONAL
*"      IT_ITEM_DETAILS STRUCTURE  ZVA01ITEM
DATA : ctu  LIKE  apqi-putactive  VALUE 'X',
          mode  LIKE  apqi-putactive VALUE  'A',
          update  LIKE  apqi-putactive  VALUE 'L',
          group LIKE  apqi-groupid          ,
          user  LIKE  apqi-userid            ,
          keep  LIKE  apqi-qerase             ,
          holddate  LIKE  apqi-startdate       ,
          nodata  LIKE  apqi-putactive  VALUE '',
          wa_item_details LIKE LINE OF it_item_details..
  subrc = 0.
  DATA : val TYPE i,
  val = 1.
  PERFORM bdc_nodata      USING nodata.
  PERFORM open_group      USING group user keep holddate ctu.
  PERFORM bdc_dynpro      USING 'SAPMV45A' '0101'.
  PERFORM bdc_field       USING 'BDC_CURSOR'
                                'VBAK-AUART'.
  PERFORM bdc_field       USING 'BDC_OKCODE'
                                '/00'.
  PERFORM bdc_field       USING 'VBAK-AUART'
                                i_header_details-order_type.
  PERFORM bdc_field       USING 'VBAK-VKORG'
                                i_header_details-sales_org.
  PERFORM bdc_field       USING 'VBAK-VTWEG'
                                i_header_details-distri_chann.
  PERFORM bdc_field       USING 'VBAK-SPART'
                                i_header_details-division.
  LOOP AT it_item_details INTO wa_item_details .
    IF val = 1.
      PERFORM bdc_dynpro      USING 'SAPMV45A' '4001'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=POAN'.
      PERFORM bdc_field       USING 'KUAGV-KUNNR'
                                    i_header_details-sold_to_party.
      PERFORM bdc_field       USING 'KUWEV-KUNNR'
                                    i_header_details-ship_to_party.
      PERFORM bdc_field       USING 'RV45A-KETDAT'
                                    i_header_details-req_deliv_date.
      PERFORM bdc_field       USING 'RV45A-KPRGBZ'
                                     i_header_details-delivery_date_type.
*perform bdc_field       using 'VBKD-PRSDT'
                             PRSDT_009.
*perform bdc_field       using 'BDC_CURSOR'
                             'RV45A-KWMENG(01)'.
       PERFORM bdc_field       USING 'RV45A-MABNR(01)'
                                    wa_item_details-material_no.
perform bdc_field       using 'RV45A-KWMENG(01)'
                             wa_item_details-order_quantity.
                                '22' .
    ELSE.
      PERFORM bdc_dynpro      USING 'SAPMV45A' '4001'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=POAN'.
*perform bdc_field       using 'KUAGV-KUNNR'
                             KUNNR_012.
*perform bdc_field       using 'KUWEV-KUNNR'
                             KUNNR_013.
*perform bdc_field       using 'RV45A-KETDAT'
                             KETDAT_014.
*perform bdc_field       using 'RV45A-KPRGBZ'
                             KPRGBZ_015.
*perform bdc_field       using 'VBKD-PRSDT'
                             PRSDT_016.
*perform bdc_field       using 'VBKD-ZTERM'
                             ZTERM_017.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'RV45A-KWMENG(02)'.
      PERFORM bdc_field       USING 'RV45A-MABNR(02)'
                                    wa_item_details-material_no.
**perform bdc_field       using 'BDC_CURSOR'
                             'RV45A-KWMENG(02)'.
perform bdc_field       using 'RV45A-KWMENG(02)'
                              wa_item_details-order_quantity.
                             '22'.
    ENDIF.
    val = val + 1.
  ENDLOOP.
  PERFORM bdc_dynpro      USING 'SAPMV45A' '4001'.
  PERFORM bdc_field       USING 'BDC_OKCODE'
                                '=SICH'.
*perform bdc_field       using 'KUAGV-KUNNR'
                             KUNNR_020.
*perform bdc_field       using 'KUWEV-KUNNR'
                             KUNNR_021.
*perform bdc_field       using 'RV45A-KETDAT'
                             KETDAT_022.
*perform bdc_field       using 'RV45A-KPRGBZ'
                             KPRGBZ_023.
*perform bdc_field       using 'VBKD-PRSDT'
                             PRSDT_024.
*perform bdc_field       using 'VBKD-ZTERM'
                             ZTERM_025.
*perform bdc_field       using 'BDC_CURSOR'
                             'RV45A-KWMENG(02)'.
*perform bdc_field       using 'RV45A-MABNR(02)'
                             MABNR_02_026.
*perform bdc_field       using 'RV45A-KWMENG(02)'
                             KWMENG_02_027.
  PERFORM bdc_transaction TABLES messtab
  USING                         'VA01'
                                ctu
                                mode
                                update.
  IF sy-subrc <> 0.
    subrc = sy-subrc.
    EXIT.
  ENDIF.
  PERFORM close_group USING     ctu.
ENDFUNCTION.
if i   hard code that value '22' for RV45A-KWMENG its working fine, with out any error but when
get it from the WA it shows an error....

Hi,
Check field length of 'RV45A-KWMENG and wa_item_details-order_quantity. Try changing wa_item_details-order_quantity to type CHAR. Alternatively use BAPI_SALESORDER_CREATE*
Cheers.
...Reward if useful.

Similar Messages

  • Please some one can help me to fix the special char issue

    Hello,
    Please some one can help me to resolve the issue.
    I was try to load data from PSA to DSO,where it was got failed.
    error message is saying that "Value 'Blythewood' (hex. '0042006C00790074006800650077006F006F0064') of characteristic ZSHPTOCIT contains invalid characters".
    Please advise me to resolve the issue.

    Hi Aryan,
    Change your info-object ZSHPTOCIT to accept Lower Case Letters(it is in General tab of the Info-object definition screen. Check the Lower Case Letters Box) and then load the data. I dont know why you are using the info-object but you may want to check what "Blythewood" means to business users. If it makes sense to them then its fine or esle ask the R/3 team to correct the data.
    Regards,
    Nikhil

  • Please some one can explain about some complex queries

    BW Guru's,
    please some one can explain about some complex queries which was created while working on Reporting.
    I need to create profit and loss query as per requirment on the FL-Gl cube.
    Answer would be appreciate in advance.
    Regards
    Krish

    HI Aryan,
    No need to create FM on your own. You can copy the FM from Function Group RSAX.
    The procedure to create FM extractor is as follows:
    1) Create an extract structure.
    2) Go to SE80. Select Function Group RSAX , right click and then copy.
    3) Give your own name to the function group to copy.
    4) Select one appropriate FM from the list of FMs provided. eg FM RSAX_BIW_GET_DATA_SIMPLE.
    5)Specify the name of new FM you want to create.
    6) Go to SE37 and open the FM you have created by copying from Function Group RSAX.
    7) no need to change the import tab.
    8) On tables tab, for paramerter name E_T_DATA under asociate name specify the name of extract structure you hav created.
    9) Under source code tab make the changes in the source code only to customise it to your requirement. eg: declare the database table you are using, make changes where datasource is in picture, etc.
    I have created a generic DataSource with the help of above procedure.. I hope you will find it helpful...
    Regards,
    Geetanjali

  • Would you please some one can provide me Reporting function and Techn specs

    Hi BI guru's
    Would you please some one can provide me Reporting function and Techn specs.I have got new requirement for the reports.
    Hence i need to prepare Functiona and technical spec for them.
    I don't have any documents related to it.
    Please some one can help me  and mail it to [email protected]
    Edited by: krish aryan on Jul 30, 2008 3:00 AM

    Hi,
    You need the template for techical specs? Your question is not clear. If you are asking for templates, I don't think they can be shared in a common forum like this.
    We can give you an idea as to how it can be prepared, but I guess you will already have templates for your documentation in your company portal.
    Regards
    Sudeepti

  • Please some one can provide me FM extracter document

    Hello,
    I am  creating new function module extracter and need some usefull documents.
    Hve  searched in SDN,but i couldn't able get right fields over there and one more thing is have a document and where the declaration for FM as given below
    Importing Parameter
    I_DSOURCE type SRSC_S_IF_SIMPLE-DSOURCE DataSource
    I_INITFLAG type SRSC_S_IF_SIMPLE-INITFLAG Initialization call
    I_MAXSIZE type SRSC_S_IF_SIMPLE-MAXSIZE package size
    I_REQUNR type SRSC_S_IF_SIMPLE-REQUNR request number
    Tables
    I_T_SELECT type SRSC_S_IF_SIMPLE-T_SELECT
    I_T_FIELDS type SRSC_S_IF_SIMPLE-T_SELECT
    E_T_DATA
    Exceptions
    NO_MORE_DATA
    ERROR_PASSED_TO_MESS_HANDLER
    Please some one can explain me abt the declartion

    HI Aryan,
    No need to create FM on your own. You can copy the FM from Function Group RSAX.
    The procedure to create FM extractor is as follows:
    1) Create an extract structure.
    2) Go to SE80. Select Function Group RSAX , right click and then copy.
    3) Give your own name to the function group to copy.
    4) Select one appropriate FM from the list of FMs provided. eg FM RSAX_BIW_GET_DATA_SIMPLE.
    5)Specify the name of new FM you want to create.
    6) Go to SE37 and open the FM you have created by copying from Function Group RSAX.
    7) no need to change the import tab.
    8) On tables tab, for paramerter name E_T_DATA under asociate name specify the name of extract structure you hav created.
    9) Under source code tab make the changes in the source code only to customise it to your requirement. eg: declare the database table you are using, make changes where datasource is in picture, etc.
    I have created a generic DataSource with the help of above procedure.. I hope you will find it helpful...
    Regards,
    Geetanjali

  • Please some one can send me CD SAP IDES

    i lost my CD SAP Ides and SAP Help...please some one can send me?

    Hi Aryan,
    Change your info-object ZSHPTOCIT to accept Lower Case Letters(it is in General tab of the Info-object definition screen. Check the Lower Case Letters Box) and then load the data. I dont know why you are using the info-object but you may want to check what "Blythewood" means to business users. If it makes sense to them then its fine or esle ask the R/3 team to correct the data.
    Regards,
    Nikhil

  • Please some one can provide me SP13 and SP14 SNotes

    Hi,
    Some one can provide me SNote for SP13 and SP14
    Is there any diffrence between both SP13 and SP 14
    Which i would like to go for
    Please some can advise me

    what do you mean by provide SNote
    All support packs are different you dont have to choose between them but apply all of them. They need to applied in sequence. You cant apply 14 without applying 13.

  • HT5085 Please some one help me! i bought a album 24hours ago and it douwnloaded bout doe not play. i'm trying to re-douwnload it but doesnt want to do any thing. please help??

    hi, could some one please help me? i bought a album 24hours ago and it does not play. so i deleted it and tryed to download it again, but it says its already downloaded. what can i do? PLEASE HELP?!

    Make sure you delete all the tracks from within iTunes itself, not just the track files. Once you remove the tracks from iTunes' library listing, then you should be able to download the tracks again from your Purchases list.
    Regards.

  • Reallly Really Annoying,- Please some one help! ?

    Hey well basicly ive got the curve 8900 and regularly when i go to play music its showing headphones plugged in so i have to click the blackberry button and switch it to handset, But the worst thing is when i get a call its doing the same thing by the looks its switchin from headset, speaker and handset therefore i cannot hear my phone call this is really annoying please can some one help.
    Regards,
    James,

    Unless you haven't already done so... reload the device with latest software from your carriers site, look for funky apps you may have installed (sound/music/games), and then call your carrier for support - it should have a 1 years warranty where they ship you a new one!
    peace and love

  • Internal Order process error via VA01

    Hello Guru,
    I am trying to process an internal order for prepaid tooling using VA01 order type XXYZ.  It is an intercompany transaction.  I need to enter the order number into the account assignment tab where it says order and I keep getting the "error ORD belong to Business Area GT05 not GT01"  .
    How can I fix this error?
    Thank you.

    Hi
    Assign an internal order in which business area is GT01.
    Br. Ajay M

  • I really need help so today morning ithis notifacation pop up saying i could use the ios 6 so i press allow after my ipod keep on showing the apple over and over so please some one help thanks.

    some please help

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • Photo files willnot show in iT for my iPod.........Please some one help me!

    When I load the photos from the file or files i want from my computer, it will not display the file or files on the iTunes work area for my iPod. so i can arange my photos, but it dose load it in to my iPod. When I sync the file it says "up dateing iPod do not unplug" when it is done it will say complete and there will be photos on my iPod but no display on the computer of the files.
    Thanks
    WT

    If the folder you are syncing from has sub folders they will show in the box. This allows you to use the selected folders option and choose one or more of the sub folders. For example you may choose to sync from My Pictures and inside My Pictures you have folders for different subjects. You can then choose which of those subject folders you want to update to the iPod or you might want to make a folder in there especially for iPod photos. You can drag these folders into an order of your choice.

  • I have ipad2 it using wifi 3g how can i use my iphone4 network to browse on it please some one help

    i have ipad2 that have wifi+3g , and i want to use my iphone 4 net work to use the ipad wifi please how can i download it so that i can use the iphone 4 network on the ipad

    You don't download anything at all. The feature is built into the iPhone 4 already. Your carrier has to support the feature and there might be an extra charge to use it.
    You can read about how it works here.
    iOS: Understanding Personal Hotspot - Support - Apple

  • Why when I store a number to my iphone 5 don't it show up in my contacts , but will show the name on my call list , please some one help as it's driving me nuts

    Can any one please help me as I can't find numbers I store to my contact unless I go throu my call history or text messages

    What no one can help me seriously

  • I just got my ipod and i have networks but it wont let me make a password i have tried to find my wi-fi password but i can't is there an app where i can get wi-fi off of it please some one help me i can't do anything on my ipod

    i just got a ipod and i can't find my wi-fi password im so mad i have alot of networks but it wont let me make a password and i have tried to find my wi-fi password is there an app or something that can help me get wi-fi on my ipod i feel so sad knowing that i cant even do anything with it

    You need to contact the people who administer the networks to get the passwords for the networks. If there was such an app as you are asking for then passwords for wifi networks would be worthless.

Maybe you are looking for

  • Home button not working on iPad 2 after iOS5.1.1

    I got iPad 2 updated with ions 5.1.1 It worked fine for a week and now the home button does not work. I followed all posts here to reset, restore etc. but nothing helps. This is already a replacement iPad I got for my previous non functional iPad 2 w

  • Help! I'm going crazy with the Export function!

    I've spent all day googling and trying different methods but I keep having issue with the Export to Movie function in CS3. I have a short 2-minute long movie made of several video clips, cross dissolve transitions, and an mp3 for background music. Ev

  • How to set java.library.path form code

    I'm new to JNI. I see there are several ways to set JVM to look for libraries dll, so, etc.      System.setProperty("java.library.path", ".");      System.loadLibrary("hello");That's when UnsatisfiedLinkError java.lang.UnsatisfiedLinkError: no hello

  • Apparent Bitfile corruption in VI

    I was writing a small Host VI to test certain FPGA problems we've been having in the last time. Test was working fine, and I was refining things step by step.  Then I started getting errors "If using external clocks blah blah blah" and was getting er

  • WLS 8.1: weblogic.Deployer + concurrent deployment tasks

    Hello, We have a domain with 4 managed servers which supports a team of 4 developers (one per managed). They have the possibility to launch Deploy taks using weblogic.Deployer on one of the managed servers. We have found that deployment tasks are exe