What values to pass in BAPI BAPI_PO_CREATE1 for conditions

Hi,
what necessary values to be passed to conditions tables in bapi BAPI_PO_CREATE1
tables are :
POCONDHEADER =
POCONDHEADERX =
POCOND =
POCONDX =
I am just paassing item number, condition type ,condition value they are reflecting in created PO.
Helpfull answeres will be rewarded.

Check this code u will get some idea of how to create a PO
REPORT  zvk_bapi_po                                                 .
DATA: s_poheader  LIKE bapimepoheader,
      f_pono      LIKE bapimepoheader-po_number,
      s_poheaderx LIKE bapimepoheaderx,
      s_versions  LIKE bapimedcm,
      t_poitem    LIKE bapimepoitem         OCCURS 0 WITH HEADER LINE,
      t_poitemx   LIKE bapimepoitemx        OCCURS 0 WITH HEADER LINE,
      t_addr      LIKE bapimepoaddrdelivery OCCURS 0 WITH HEADER LINE,
      t_schedule  LIKE bapimeposchedule     OCCURS 0 WITH HEADER LINE,
      t_schedulex LIKE bapimeposchedulx     OCCURS 0 WITH HEADER LINE,
      t_account   LIKE bapimepoaccount      OCCURS 0 WITH HEADER LINE,
      t_accountx  LIKE bapimepoaccountx     OCCURS 0 WITH HEADER LINE,
      t_return    like BAPIRET2             OCCURS 0 WITH HEADER LINE.
Fill data
*__ Header
s_poheader-comp_code   = '1000'.
s_poheader-doc_type    = 'ZIPS'.
s_poheader-created_by  = 'XXX'.
s_poheader-vendor      = '0001000441'.
s_poheader-purch_org   = 'EC01'.
s_poheader-pur_group   = '569'.
s_poheader-currency    = 'USD'.
s_poheaderx-comp_code   = 'X'.
s_poheaderx-doc_type    = 'X'.
s_poheaderx-created_by  = 'X'.
s_poheaderx-vendor      = 'X'.
s_poheaderx-purch_org   = 'X'.
s_poheaderx-pur_group   = 'X'.
s_poheaderx-currency    = 'X'.
s_versions-post_date    = '06/05/2006'   .
s_versions-completed    = 'X'     .
s_versions-reason       = '0001'     .
s_versions-description  = 'APPROVED BY KRISH' .
s_versions-req_by       = 'HBE8328'.
t_poitem-short_text     =  '0005-000721'.
t_poitem-plant          =  '5002'.
t_poitem-trackingno     =  '1000002151'.
t_poitem-matl_group     =  'MG0001'.
t_poitem-quantity       =  '8.000'.
t_poitem-po_unit        =  'EA'.
t_poitem-orderpr_un     =  'EA'.
t_poitem-net_price      =  '109.880000000'.
t_poitem-price_unit     =  '1'.
t_poitem-acctasscat     =  'K'.
t_poitem-preq_name      =  'ABC'.
t_poitemx-po_itemx       =  'X'.
t_poitemx-short_text     =  'X'.
t_poitemx-plant          =  'X'.
t_poitemx-trackingno     =  'X'.
t_poitemx-matl_group     =  'X'.
t_poitemx-quantity       =  'X'.
t_poitemx-po_unit        =  'X'.
t_poitemx-orderpr_un     =  'X'.
t_poitemx-net_price      =  'X'.
t_poitemx-price_unit     =  'X'.
t_poitemx-acctasscat     =  'X'.
t_poitemx-preq_name      =  'X'.
t_addr-name               =  'CoCode 1000'.
t_addr-name_2             =  'Company Code 1000'.
t_addr-city               =  'Houston'.
t_addr-postl_cod1         =  '77020-6237'.
t_addr-street             =  '4100 Clinton Dr'.
t_addr-country            =  'US'.
t_addr-langu              =  'EN'.
t_addr-region             =  'TX'.
t_addr-sort1              =  'COCODE 1000'.
t_addr-sort2              =  'COMPANY CODE 1000'.
t_addr-time_zone          =  'CST'.
t_addr-comm_type          =  'INT'.
t_addr-tel1_numbr         =  '7137534000'.
t_addr-e_mail             =  '[email protected]'.
t_addr-countryiso         =  'US'.
t_addr-langu_iso          =  'EN'.
t_schedule-sched_line    = '0001'.
t_schedule-delivery_date = '04/17/2006'.
t_schedule-quantity      = '8.000'.
t_schedule-preq_no       = '5000000050'.
t_schedule-preq_item     = '00010'.
t_schedulex-sched_line    = '0001'.
t_schedulex-delivery_date = 'X'.
t_schedulex-quantity      = 'X'.
t_schedulex-preq_no       = 'X'.
t_schedulex-preq_item     = 'X'.
t_account-serial_no        = '01'.
t_account-gl_account       = '0000500200'.
t_account-costcenter       = '1000000297'.
t_account-gr_rcpt          = '3227'.
t_account-co_area          = 'CNTC'.
t_account-profit_ctr       = '1000000297'.
t_accountx-serial_no        = '01'.
t_accountx-gl_account       = 'X'.
t_accountx-costcenter       = 'X'.
t_accountx-gr_rcpt          = 'X'.
t_accountx-co_area          = 'X'.
t_accountx-profit_ctr       = 'X'.
t_poitem-po_item       = '00000'.
t_poitemx-po_item      = '00000'.
t_addr-po_item         = '00000'.
t_schedule-po_item     = '00000'.
t_account-po_item      = '00000'.
t_accountx-po_item     = '00000'.
DO 50 TIMES.
  t_poitem-po_item       = t_poitem-po_item + 1.
  APPEND t_poitem.
  t_poitemx-po_item      = t_poitemx-po_item + 1.
  APPEND t_poitemx.
t_addr-po_item         = t_addr-po_item + 1.
APPEND t_addr.
  t_schedule-po_item     = t_schedule-po_item + 1.
  APPEND t_schedule.
  t_schedulex-po_item    = t_schedulex-po_item + 1.
  APPEND t_schedulex.
  t_account-po_item      = t_account-po_item + 1.
  APPEND t_account.
  t_accountx-po_item     = t_accountx-po_item + 1.
  APPEND t_accountx.
ENDDO.
CALL FUNCTION 'BAPI_PO_CREATE1'
  EXPORTING
    poheader         = s_poheader
    poheaderx        = s_poheaderx
    versions         = s_versions
  IMPORTING
    exppurchaseorder = f_pono
TABLES
   RETURN                       = t_return
   poitem                       = t_poitem
   poitemx                      = t_poitemx
   poaddrdelivery               = t_addr
   poschedule                   = t_schedule
   poschedulex                  = t_schedulex
   poaccount                    = t_account
   poaccountx                   = t_accountx   .
   WRITE: 'PO No:', f_pono.

Similar Messages

  • What values to pass in BAPI  BAPI_INCOMINGINVOICE_CREATE for Business palce

    Hi BAPI gurus,
    I can create MIRO doc using bapi BAPI_INCOMINGINVOICE_CREATE
    But i want to create MIRO along with the values Business place and section in Basic data  tab of MIRO t-code.
    I am not understanding which are the fields in bapi header to populate Business place and section.
    How to create MIRO along with passing values to Business place and section .
    helpfull asweres will be rewarded.

    Hi Friend,
    Try to pass in field BUSINESS_PLACE of structure BAPI_INCINV_CREATE_HEADER to that BAPI.
    Hope it will work.
    Regards
    Krishnendu

  • What values  to pass the import values of FM -KAUF_AUFNR_CHANGE.

    Hi,
    what values  to pass the import values of FM -KAUF_AUFNR_CHANGE.., Since the fields in FM are different from the values of database table fields.

    Hi,
    the import parameters in the FM are type of structures. it basically acts as a work area.
    when you execute the FM, and click on the icon in front of the field, for example, I_AFKO, and then you can enter the values you want to.
    Hope it helps,
    Preet

  • How to find what values were passed onto a store procedure at the last run

    my web application is calling a store procedure but not returning the desired results in the ASP.net page
    when i execute the store procedure in sql server by providing the same values i get the desired result
    is there any way i could tell what values were passed onto the store procedure when it was called by the web page
    i am using sql server 2012 express 

    To add to the Profiler suggestion, you can also capture this information using Extended Events.  Below is a script example to capture RPC and batch completed events.  This can be done from the SSMS Object Explorer as well:
    --create ExtendedEvent session
    CREATE EVENT SESSION [ParameterTrace] ON SERVER
    ADD EVENT sqlserver.rpc_completed(
    ACTION(sqlserver.sql_text)),
    ADD EVENT sqlserver.sql_batch_completed(
    ACTION(sqlserver.sql_text))
    ADD TARGET package0.event_file(SET filename=N'C:\Temp\ParameterTrace.xel')
    WITH (MAX_MEMORY=4096 KB,EVENT_RETENTION_MODE=ALLOW_SINGLE_EVENT_LOSS,MAX_DISPATCH_LATENCY=30 SECONDS,MAX_EVENT_SIZE=0 KB,MEMORY_PARTITION_MODE=NONE,TRACK_CAUSALITY=OFF,STARTUP_STATE=OFF)
    GO
    --start session
    ALTER EVENT SESSION [ParameterTrace] ON SERVER
    STATE = START;
    GO
    --stop session
    ALTER EVENT SESSION [ParameterTrace] ON SERVER
    STATE = STOP;
    --query trace data
    SELECT CAST(event_data AS XML) AS event_data
    FROM sys.fn_xe_file_target_read_file(N'C:\temp\ParameterTrace*', default, default, default);
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

  • How to pass the condition vallues in bapi BAPI_PO_CREATE1 for items as well

    HI,
    where to pass the condition value table in bapi BAPI_PO_CREATE1 item level as well as header level
    Like Frieght charges,discounts, basic price ,VAT,CST etc.
    Is there any BAPI for GR tcode MIGO.
    Pl send along with simple examples .
    Your answeres will be rewarded.

    Pass the condition value to the following parameters.
      POCONDHEADER                 =
      POCONDHEADERX                =
      POCOND                       =
      POCONDX                      =
    For GR u case use the following BAPI.
    GMCODE Table T158G - 01 - MB01 - Goods Receipts for Purchase Order
                         02 - MB31 - Goods Receipts for Prod Order
                         03 - MB1A - Goods Issue
                         04 - MB1B - Transfer Posting
                         05 - MB1C - Enter Other Goods Receipt
                         06 - MB11
    Domain: KZBEW - Movement Indicator
         Goods movement w/o reference
    B - Goods movement for purchase order
    F - Goods movement for production order
    L - Goods movement for delivery note
    K - Goods movement for kanban requirement (WM - internal only)
    O - Subsequent adjustment of "material-provided" consumption
    W - Subsequent adjustment of proportion/product unit material
             call function 'BAPI_GOODSMVT_CREATE'
               exporting
                   goodsmvt_header             = gmhead
                   goodsmvt_code               = gmcode
                 *   TESTRUN                     = ' '
              IMPORTING
                  goodsmvt_headret            = mthead
             *   MATERIALDOCUMENT            =
      MATDOCUMENTYEAR             =
               tables
                 goodsmvt_item               = itab
      GOODSMVT_SERIALNUMBER       =
                return                      = errmsg.

  • Issue in condition table passing in BAPI BAPI_PO_CREATE1 when uploading PO

    hi everyone,
      I am trying to upload PO data (header, item, conditions)from file. Some of my main code as follows:
    i have pasted the code for assigning values to condition table and passing in  bapi..once i execute the bapi in debug mode..PO not created, no values in condition tables. rest of the table values are fine..
    W_BAPIMEPOCOND-ITM_NUMBER = '000001'.
      W_BAPIMEPOCOND-COND_ST_NO = '001'.
      W_BAPIMEPOCOND-COND_TYPE = 'PB00'.
      W_BAPIMEPOCOND-COND_VALUE = '1000'.
      W_BAPIMEPOCOND-CURRENCY = 'KES'.
      APPEND W_BAPIMEPOCOND TO I_BAPIMEPOCOND.
      CLEAR W_BAPIMEPOCOND.
    W_BAPIMEPOCOND-ITM_NUMBER = '000001'.
      W_BAPIMEPOCOND-COND_ST_NO = '000'.
      W_BAPIMEPOCONDX-COND_TYPE = 'X'.
      W_BAPIMEPOCONDX-COND_VALUE = 'X'.
      W_BAPIMEPOCONDX-CURRENCY = 'X'.
      APPEND W_BAPIMEPOCONDX TO I_BAPIMEPOCONDX.
      CLEAR W_BAPIMEPOCONDX.
      ENDLOOP.
    LOOP AT I_BAPIMEPOHEADER INTO W_BAPIMEPOHEADER.
    CALL FUNCTION 'BAPI_PO_CREATE1'
      EXPORTING
        POHEADER                     = W_BAPIMEPOHEADER
       POHEADERX                    = W_BAPIMEPOHEADERx
      POADDRVENDOR                 =
      TESTRUN                      =
      MEMORY_UNCOMPLETE            =
      MEMORY_COMPLETE              =
      POEXPIMPHEADER               =
      POEXPIMPHEADERX              =
      VERSIONS                     =
      NO_MESSAGING                 =
      NO_MESSAGE_REQ               =
      NO_AUTHORITY                 =
      NO_PRICE_FROM_PO             =
      PARK_COMPLETE                =
      PARK_UNCOMPLETE              =
    IMPORTING
       EXPPURCHASEORDER             = EXPPURCHASEORDER
      EXPHEADER                    =
      EXPPOEXPIMPHEADER            =
    TABLES
       RETURN                       = RETURN
       POITEM                       = I_BAPIMEPOITEM
       POITEMX                      = I_BAPIMEPOITEMX
      POADDRDELIVERY               =
       POSCHEDULE                   = I_BAPIMEPOSCHEDULE
       POSCHEDULEX                  = I_BAPIMEPOSCHEDULEX
      POACCOUNT                    =
      POACCOUNTPROFITSEGMENT       =
      POACCOUNTX                   =
      POCONDHEADER                 =
      POCONDHEADERX                =
       POCOND                       = I_BAPIMEPOCOND
       POCONDX                      = I_BAPIMEPOCONDX
      POLIMITS                     =
      POCONTRACTLIMITS             =
      POSERVICES                   =
      POSRVACCESSVALUES            =
      POSERVICESTEXT               =
      EXTENSIONIN                  =
      EXTENSIONOUT                 =
      POEXPIMPITEM                 =
      POEXPIMPITEMX                =
      POTEXTHEADER                 =
      POTEXTITEM                   =
      ALLVERSIONS                  =
      POPARTNER                    =
      POCOMPONENTS                 =
      POCOMPONENTSX                =
      POSHIPPING                   =
      POSHIPPINGX                  =
      POSHIPPINGEXP                =
      SERIALNUMBER                 =
      SERIALNUMBERX                =
      INVPLANHEADER                =
      INVPLANHEADERX               =
      INVPLANITEM                  =
      INVPLANITEMX                 =
      NFMETALLITMS                 =
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            wait = 'X'.
    Thanks in advance!!

    Hi Balaji,
    I suppose it's a simple copy paste error. Refer the code higlighted below:
    W_BAPIMEPOCOND-ITM_NUMBER = '000001'.
    W_BAPIMEPOCOND-COND_ST_NO = '001'.
    W_BAPIMEPOCOND-COND_TYPE = 'PB00'.
    W_BAPIMEPOCOND-COND_VALUE = '1000'.
    W_BAPIMEPOCOND-CURRENCY = 'KES'.
    APPEND W_BAPIMEPOCOND TO I_BAPIMEPOCOND.
    CLEAR W_BAPIMEPOCOND.
    W_BAPIMEPOCONDX-ITM_NUMBER = '000001'.
    W_BAPIMEPOCONDX-COND_ST_NO = '000'.
    W_BAPIMEPOCONDX-COND_TYPE = 'X'.
    W_BAPIMEPOCONDX-COND_VALUE = 'X'.
    W_BAPIMEPOCONDX-CURRENCY = 'X'.
    Regards,
    Pranav.
    Edited by: Pranav Mandelia on Sep 30, 2011 1:52 PM

  • HT1620 What is the pass code being requested for install?

    Pass code for iOS7.1.1

    Locked Out, Forgot Lock or Restrictions Passcode, or Need to Restore Your Device: Several Alternative Solutions
    A
    1. iOS- Forgotten passcode or device disabled after entering wrong passcode
    2. iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
    3. Restoring iPod touch after forgotten passcode
    4. What to Do If You've Forgotten Your iPhone's Passcode
    5. iOS- Understanding passcodes
    6. iTunes 10 for Mac- Update and restore software on iPod, iPhone, or iPad
    7. iOS - Unable to update or restore
    Forgotten Restrictions Passcode Help
                iPad,iPod,iPod Touch Recovery Mode
    You will need to restore your device as New to remove a Restrictions passcode. Go through the normal process to restore your device, but when you see the options to restore as New or from a backup, be sure to choose New.
    You can restore from a backup if you have one from BEFORE you set the restrictions passcode.
    Also, see iTunes- Restoring iOS software.

  • Why not all billing documents are posted to CO-PA for condition types?

    Hello!
    I have following problem.
    In transaction KE4I I have configured several condition types to post for specific value fields.
    For some billing types it works but for some doesn't work.
    For all domestic invoices it works but for abroad invoices it doesn't work.
    Billing documents for abroad invoices are also posted to CO-PA but for another value fields, not for that I expect.
    Where is problem?
    I am waiting for help.
    Best regards
    Bogdan

    Hi.
    In both pricing procedures there are same condition types. The only difference was check box "Condition is used for statistics".
    After marking this check box it still doesn't work.
    There are placed the same condition types in all billing documents (domestic and abroad) . So I am supprised that for domestic billing documents field value in CO-PA is calculated for condition types placed in KE4I.
    But for abroad billing documents the same field value is not calculated for the same condition types placed in  KE4I.
    Where is a problem?
    I need help.
    Best regards
    Bogdan

  • What mandatory values to pass in bapi_po_change

    Hi,
    I want to change the Condition value of a material i.e basic value of material in PO.
    what mandatory values required to pass to BAPI_PO_CHANGE.
    pl send along with the sample .example.
    Helpfull ans will be rewarded.
    Note : I am creating po using BAPI_PO_CREATE1. but condition values passing to POCOND are not getting reflected due to Info records that is the reason why i am going for po change.

    hi.
    check this examples.
    REPORT zpo_bapi_purchord_tej.
    DATA DECLARATIONS *
    TYPE-POOLS slis.
    TYPES: BEGIN OF ty_table,
    v_legacy(8),
    vendor TYPE bapimepoheader-vendor,
    purch_org TYPE bapimepoheader-purch_org,
    pur_group TYPE bapimepoheader-pur_group,
    material TYPE bapimepoitem-material,
    quantity(13),
    delivery_date TYPE bapimeposchedule-delivery_date,
    net_price(23),
    plant TYPE bapimepoitem-plant,
    END OF ty_table.
    TYPES: BEGIN OF ty_alv,
    v_legs(8),
    success(10),
    v_legf(8),
    END OF ty_alv.
    TYPES: BEGIN OF ty_alv1,
    v_legf1(8),
    v_msg(500),
    END OF ty_alv1.
    *-----Work area declarations.
    DATA: x_table TYPE ty_table,
    x_header TYPE bapimepoheader,
    x_headerx TYPE bapimepoheaderx,
    x_item TYPE bapimepoitem,
    x_itemx TYPE bapimepoitemx,
    x_sched TYPE bapimeposchedule,
    x_schedx TYPE bapimeposchedulx,
    x_commatable(255),
    x_alv TYPE ty_alv,
    x_alv1 TYPE ty_alv1,
    x_alv2 TYPE ty_alv1.
    *-----Internal table declarations.
    DATA: it_table TYPE TABLE OF ty_table,
    it_commatable LIKE TABLE OF x_commatable,
    it_item TYPE TABLE OF bapimepoitem,
    it_itemx TYPE TABLE OF bapimepoitemx,
    it_sched TYPE TABLE OF bapimeposchedule,
    it_schedx TYPE TABLE OF bapimeposchedulx,
    it_alv TYPE TABLE OF ty_alv,
    it_alv1 TYPE TABLE OF ty_alv1,
    it_alv2 TYPE TABLE OF ty_alv1.
    DATA: po_number TYPE bapimepoheader-po_number,
    x_return TYPE bapiret2,
    it_return TYPE TABLE OF bapiret2,
    v_file TYPE string,
    v_temp(8),
    v_succsount TYPE i VALUE 0,
    v_failcount TYPE i VALUE 0,
    v_total TYPE i.
    DATA: v_temp1(5) TYPE n VALUE 0.
    DATA: x_event TYPE slis_t_event,
    x_fieldcat TYPE slis_t_fieldcat_alv,
    x_list_header TYPE slis_t_listheader,
    x_event1 LIKE LINE OF x_event,
    x_layout1 TYPE slis_layout_alv,
    x_variant1 TYPE disvariant,
    x_repid2 LIKE sy-repid.
    DATA : it_fieldcat TYPE TABLE OF slis_t_fieldcat_alv.
    SELECTION-SCREEN *
    SELECTION-SCREEN BEGIN OF BLOCK v_b1 WITH FRAME.
    *-----To fetch the flat file.
    PARAMETERS: p_file TYPE rlgrap-filename.
    SELECTION-SCREEN END OF BLOCK v_b1.
    AT SELECTION-SCREEN *
    AT SELECTION-SCREEN.
    IF p_file IS INITIAL.
    MESSAGE text-001 TYPE 'E'.
    ENDIF.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    *-----To use F4 help to find file path.
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
    program_name = syst-cprog
    dynpro_number = syst-dynnr
    IMPORTING
    file_name = p_file.
    v_file = p_file.
    START-OF-SELECTION *
    START-OF-SELECTION.
    PERFORM gui_upload.
    LOOP AT it_table INTO x_table.
    PERFORM header_details.
    v_temp = x_table-v_legacy.
    LOOP AT it_table INTO x_table WHERE v_legacy = v_temp.
    PERFORM lineitem.
    PERFORM schedule.
    ENDLOOP.
    DELETE it_table WHERE v_legacy = v_temp.
    PERFORM bapicall.
    MOVE po_number TO x_alv-success.
    APPEND x_alv TO it_alv.
    CLEAR x_alv.
    *-----To clear the item details in internal table after the operation for a header.
    REFRESH: it_item,
    it_itemx,
    it_sched,
    it_schedx.
    CLEAR: v_temp1.
    ENDLOOP.
    v_total = v_succsount + v_failcount.
    PERFORM display_alv.
    FORM GUI_UPLOAD *
    FORM gui_upload .
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    filename = v_file
    filetype = 'ASC'
    TABLES
    data_tab = it_commatable
    EXCEPTIONS
    file_open_error = 1
    file_read_error = 2
    no_batch = 3
    gui_refuse_filetransfer = 4
    invalid_type = 5
    no_authority = 6
    unknown_error = 7
    bad_data_format = 8
    header_not_allowed = 9
    separator_not_allowed = 10
    header_too_long = 11
    unknown_dp_error = 12
    access_denied = 13
    dp_out_of_memory = 14
    disk_full = 15
    dp_timeout = 16
    OTHERS = 17
    IF sy-subrc = 0.
    *-----To fetch the comma seperated flat file into an internal table.
    LOOP AT it_commatable INTO x_commatable.
    IF x_commatable IS NOT INITIAL.
    SPLIT x_commatable AT ',' INTO
    x_table-v_legacy
    x_table-vendor
    x_table-purch_org
    x_table-pur_group
    x_table-material
    x_table-quantity
    x_table-delivery_date
    x_table-net_price
    x_table-plant.
    APPEND x_table TO it_table.
    ENDIF.
    CLEAR x_table.
    ENDLOOP.
    ENDIF.
    ENDFORM. " gui_upload
    FORM HEADER_DETAILS *
    FORM header_details .
    MOVE 'NB' TO x_header-doc_type.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
    input = x_table-vendor
    IMPORTING
    output = x_table-vendor
    MOVE x_table-vendor TO x_header-vendor.
    MOVE x_table-purch_org TO x_header-purch_org.
    MOVE x_table-pur_group TO x_header-pur_group.
    x_headerx-doc_type = 'X'.
    x_headerx-vendor = 'X'.
    x_headerx-purch_org = 'X'.
    x_headerx-pur_group = 'X'.
    ENDFORM. " header_details
    FORM LINEITEM *
    FORM lineitem .
    v_temp1 = v_temp1 + 10.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
    input = v_temp1
    IMPORTING
    output = v_temp1.
    MOVE v_temp1 TO x_item-po_item.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
    input = x_table-material
    IMPORTING
    output = x_table-material.
    MOVE x_table-material TO x_item-material.
    MOVE x_table-quantity TO x_item-quantity.
    MOVE x_table-net_price TO x_item-net_price.
    MOVE x_table-plant TO x_item-plant.
    x_itemx-po_item = v_temp1.
    x_itemx-material = 'X'.
    x_itemx-quantity = 'X'.
    x_itemx-net_price = 'X'.
    x_itemx-plant = 'X'.
    APPEND x_item TO it_item.
    APPEND x_itemx TO it_itemx.
    CLEAR: x_item, x_itemx.
    ENDFORM. " lineitem1
    FORM SCHEDULE *
    FORM schedule .
    MOVE x_table-delivery_date TO x_sched-delivery_date.
    MOVE v_temp1 TO x_sched-po_item.
    x_schedx-delivery_date = 'X'.
    x_schedx-po_item = v_temp1.
    APPEND x_sched TO it_sched.
    APPEND x_schedx TO it_schedx.
    CLEAR: x_sched, x_schedx.
    ENDFORM. " schedule
    FORM BAPICALL *
    FORM bapicall .
    CALL FUNCTION 'BAPI_PO_CREATE1'
    EXPORTING
    poheader = x_header
    poheaderx = x_headerx
    IMPORTING
    exppurchaseorder = po_number
    TABLES
    return = it_return
    poitem = it_item
    poitemx = it_itemx
    poschedule = it_sched
    poschedulex = it_schedx.
    IF po_number IS NOT INITIAL.
    v_succsount = v_succsount + 1.
    MOVE x_table-v_legacy TO x_alv-v_legs.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    ELSE.
    v_failcount = v_failcount + 1.
    MOVE x_table-v_legacy TO x_alv-v_legf.
    MOVE x_table-v_legacy TO x_alv1-v_legf1.
    LOOP AT it_return INTO x_return.
    IF x_alv1-v_msg IS INITIAL.
    MOVE x_return-message TO x_alv1-v_msg.
    ELSE.
    CONCATENATE x_alv1-v_msg x_return-message INTO x_alv1-v_msg SEPARATED BY space.
    ENDIF.
    ENDLOOP.
    APPEND x_alv1 TO it_alv1.
    CLEAR x_alv1.
    ENDIF.
    ENDFORM. " bapicall
    FORM DISPLAY_ALV *
    FORM display_alv .
    PERFORM x_list_header.
    PERFORM build_fieldcat CHANGING x_fieldcat.
    x_repid2 = sy-repid.
    x_event1-name = 'TOP_OF_PAGE'.
    x_event1-form = 'TOP_OF_PAGE'.
    APPEND x_event1 TO x_event.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    i_callback_program = x_repid2
    is_layout = x_layout1
    it_fieldcat = x_fieldcat
    i_callback_user_command = 'USER_COMMAND'
    i_callback_top_of_page = 'TOP_OF_PAGE'
    i_save = 'A'
    is_variant = x_variant1
    it_events = x_event
    TABLES
    t_outtab = it_alv
    EXCEPTIONS
    program_error = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDFORM. " display_master_data
    FORM USER_COMMAND *
    FORM user_command USING ucomm LIKE sy-ucomm selfield
    TYPE slis_selfield.
    READ TABLE it_alv INTO x_alv INDEX selfield-tabindex.
    CLEAR : x_alv2,it_alv2[].
    LOOP AT it_alv1 INTO x_alv1 WHERE v_legf1 = x_alv-v_legf.
    x_alv2 = x_alv1.
    APPEND x_alv2 TO it_alv2 .
    ENDLOOP.
    DATA : it_fieldcat TYPE slis_t_fieldcat_alv.
    DATA : x3_fieldcat LIKE LINE OF it_fieldcat.
    CLEAR : x3_fieldcat,it_fieldcat[].
    CLEAR x3_fieldcat.
    x3_fieldcat-col_pos = '1'.
    x3_fieldcat-fieldname = 'V_LEGF1'.
    x3_fieldcat-reptext_ddic = text-111.
    x3_fieldcat-ref_tabname = 'IT_ALV2'.
    APPEND x3_fieldcat TO it_fieldcat.
    CLEAR x3_fieldcat.
    CLEAR x3_fieldcat.
    x3_fieldcat-col_pos = '1'.
    x3_fieldcat-fieldname = 'V_MSG'.
    x3_fieldcat-reptext_ddic = text-112.
    x3_fieldcat-ref_tabname = 'IT_ALV2'.
    APPEND x3_fieldcat TO it_fieldcat.
    CLEAR x3_fieldcat.
    x_layout1-colwidth_optimize = 'X'.
    x_layout1-zebra = 'X'.
    IF it_alv2[] IS NOT INITIAL.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    i_callback_program = x_repid2
    is_layout = x_layout1
    it_fieldcat = it_fieldcat
    i_save = 'A'
    i_callback_top_of_page = 'TOP'
    is_variant = x_variant1
    it_events = x_event
    TABLES
    t_outtab = it_alv2
    EXCEPTIONS
    program_error = 1
    OTHERS = 2.
    ENDIF.
    ENDFORM.
    FORM USER_COMMAND *
    FORM top.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    it_list_commentary = 'Commentry'.
    ENDFORM.
    FORM BUILD_FIELDCAT *
    FORM build_fieldcat CHANGING et_fieldcat TYPE slis_t_fieldcat_alv.
    DATA: x1_fieldcat TYPE slis_fieldcat_alv.
    CLEAR x1_fieldcat.
    x1_fieldcat-col_pos = '1'.
    x1_fieldcat-fieldname = 'V_LEGS'.
    x1_fieldcat-reptext_ddic = text-108.
    x1_fieldcat-ref_tabname = 'IT_ALV'.
    APPEND x1_fieldcat TO et_fieldcat.
    CLEAR x1_fieldcat.
    x1_fieldcat-col_pos = '2'.
    x1_fieldcat-fieldname = 'SUCCESS'.
    x1_fieldcat-key = 'X'.
    x1_fieldcat-reptext_ddic = text-109.
    x1_fieldcat-ref_tabname = 'IT_ALV'.
    APPEND x1_fieldcat TO et_fieldcat.
    CLEAR x1_fieldcat.
    x1_fieldcat-col_pos = '3'.
    x1_fieldcat-fieldname = 'V_LEGF'.
    x1_fieldcat-key = 'X'.
    x1_fieldcat-reptext_ddic = text-110.
    x1_fieldcat-ref_tabname = 'IT_ALV'.
    APPEND x1_fieldcat TO et_fieldcat.
    CLEAR x1_fieldcat.
    ENDFORM. " build_fieldcat
    FORM BUILD_LIST_HEADER *
    FORM x_list_header.
    DATA: x_list_header1 TYPE slis_listheader.
    *-----List Header: type H
    CLEAR x_list_header1 .
    x_list_header1-typ = 'H'.
    x_list_header1-info = text-105.
    APPEND x_list_header1 TO x_list_header.
    *-----List Key: type S
    x_list_header1-typ = 'S'.
    x_list_header1-key = text-106.
    x_list_header1-info = v_total.
    APPEND x_list_header1 TO x_list_header.
    *-----List Key: Type S
    CLEAR x_list_header1 .
    x_list_header1-typ = 'S'.
    x_list_header1-key = text-107.
    x_list_header1-info = v_succsount.
    APPEND x_list_header1 TO x_list_header.
    ENDFORM. " build_list_header
    FORM TOP_OF_PAGE *
    FORM top_of_page.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    it_list_commentary = x_list_header.
    ENDFORM. " TOP_OF_PAGE
    REPORT Z_SALES_ORDER_CHANGE
    NO STANDARD PAGE HEADING
    LINE-SIZE 132
    LINE-COUNT 65(0)
    MESSAGE-ID ZZ.
    TABLES: VBAP.
    DATA:
    V_FILEIN(90) TYPE C,
    V_RECIN TYPE I,
    V_RECVBAP TYPE I,
    V_RECORDER TYPE I,
    V_VBELN LIKE VBAP-VBELN,
    ORDERHEADERINX LIKE BAPISDH1X.
    DATA: BEGIN OF I_ORDERS OCCURS 0,
    VBELN LIKE VBAK-VBELN,
    POSNR LIKE VBAP-POSNR,
    BRGEW(18) TYPE C,
    VOLUM(18) TYPE C,
    END OF I_ORDERS.
    DATA: BEGIN OF I_OUTPUT OCCURS 0,
    VBELN LIKE VBAK-VBELN,
    POSNR LIKE VBAP-POSNR,
    GEWEI LIKE VBAP-GEWEI,
    BRGEW LIKE VBAP-BRGEW,
    VOLUM LIKE VBAP-VOLUM,
    CKWGT TYPE C,
    CKVOL TYPE C,
    END OF I_OUTPUT.
    DATA: BEGIN OF ORDERITEMIN OCCURS 0.
    INCLUDE STRUCTURE BAPISDITM.
    DATA: END OF ORDERITEMIN.
    DATA: BEGIN OF ORDERITEMINX OCCURS 0.
    INCLUDE STRUCTURE BAPISDITMX.
    DATA: END OF ORDERITEMINX.
    DATA: BEGIN OF RETURN OCCURS 0.
    INCLUDE STRUCTURE BAPIRET2.
    DATA: END OF RETURN.
    DATA: BEGIN OF BAPIRETURN OCCURS 0.
    INCLUDE STRUCTURE BAPIRET2.
    DATA: END OF BAPIRETURN.
    PARAMETERS:
    P_PATH(45) TYPE C DEFAULT '/usr/users/ftpsapom/' LOWER CASE,
    P_FNAME(32) TYPE C DEFAULT '/sweetjo.txt' LOWER CASE.
    START-OF-SELECTION.
    CONCATENATE PATH AND FILE NAME INTO ONE VARIABLE
    CONCATENATE P_PATH P_FNAME INTO V_FILEIN.
    OPEN DATASET
    IF V_FILEIN IS INITIAL.
    MESSAGE E002 WITH 'FILE' V_FILEIN 'DOES NOT CONTAIN ANY DATA!'.
    ELSE.
    OPEN DATASET V_FILEIN
    FOR INPUT
    IN TEXT MODE.
    IF SY-SUBRC = 0.
    READ DATASET
    DO.
    READ DATASET V_FILEIN INTO I_ORDERS.
    IF SY-SUBRC = 0.
    APPEND I_ORDERS.
    ELSE.
    EXIT.
    ENDIF.
    ENDDO.
    CLOSE DATASET
    CLOSE DATASET V_FILEIN.
    IF SY-SUBRC <> 0.
    MESSAGE E002 WITH 'ERROR - CLOSING' V_FILEIN.
    ENDIF.
    ELSE.
    MESSAGE E002 WITH 'ERROR - COULD NOT OPEN' V_FILEIN.
    ENDIF.
    ENDIF.
    SORT AND REMOVE DUPLICATES FROM I_ORDERS
    SORT I_ORDERS BY VBELN POSNR.
    DELETE ADJACENT DUPLICATES FROM I_ORDERS.
    POPULATE I_OUTPUT
    LOOP AT I_ORDERS.
    SHIFT I_ORDERS-POSNR LEFT DELETING LEADING SPACE.
    CONCATENATE '0' I_ORDERS-POSNR INTO I_ORDERS-POSNR.
    SELECT SINGLE BRGEW VOLUM
    FROM VBAP
    INTO (VBAP-BRGEW, VBAP-VOLUM)
    WHERE VBELN = I_ORDERS-VBELN
    AND POSNR = I_ORDERS-POSNR.
    IF SY-SUBRC = 0.
    IF VBAP-BRGEW = 0.
    I_OUTPUT-CKWGT = 'X'.
    ENDIF.
    IF VBAP-VOLUM = 0.
    I_OUTPUT-CKVOL = 'X'.
    ENDIF.
    I_OUTPUT-VBELN = I_ORDERS-VBELN.
    I_OUTPUT-POSNR = I_ORDERS-POSNR.
    I_OUTPUT-GEWEI = 'ST'.
    I_OUTPUT-BRGEW = I_ORDERS-BRGEW.
    I_OUTPUT-VOLUM = I_ORDERS-VOLUM.
    APPEND I_OUTPUT.
    CLEAR: I_OUTPUT.
    ENDIF.
    V_RECIN = V_RECIN + 1.
    ENDLOOP.
    POPULATE BAPI DATA AND RUN BAPI
    CLEAR: ORDERHEADERINX, ORDERITEMIN, ORDERITEMINX,
    RETURN, BAPIRETURN.
    REFRESH: ORDERITEMIN, ORDERITEMINX, RETURN, BAPIRETURN.
    ORDERHEADERINX-UPDATEFLAG = 'U'.
    LOOP AT I_OUTPUT WHERE CKWGT = 'X' OR CKVOL = 'X'.
    V_RECVBAP = V_RECVBAP + 1.
    IF I_OUTPUT-VBELN <> V_VBELN AND SY-TABIX <> 1.
    V_RECORDER = V_RECORDER + 1.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
    EXPORTING
    SALESDOCUMENT = V_VBELN
    ORDER_HEADER_INX = ORDERHEADERINX
    TABLES
    RETURN = RETURN
    ORDER_ITEM_IN = ORDERITEMIN
    ORDER_ITEM_INX = ORDERITEMINX.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    WAIT = 'X'
    IMPORTING
    RETURN = BAPIRETURN.
    WRITE OUT RETURN
    LOOP AT RETURN.
    WRITE: / RETURN.
    ENDLOOP.
    WRITE: / BAPIRETURN.
    SKIP.
    CLEAR: ORDERITEMIN, ORDERITEMINX,
    RETURN, BAPIRETURN.
    REFRESH: ORDERITEMIN, ORDERITEMINX, RETURN, BAPIRETURN.
    ENDIF.
    ORDERITEMIN-ITM_NUMBER = I_OUTPUT-POSNR.
    ORDERITEMIN-UNTOF_WGHT = I_OUTPUT-GEWEI.
    IF NOT I_OUTPUT-CKWGT IS INITIAL.
    ORDERITEMIN-GROSS_WGHT = I_OUTPUT-BRGEW.
    ORDERITEMINX-GROSS_WGHT = 'X'.
    ENDIF.
    IF NOT I_OUTPUT-CKVOL IS INITIAL.
    ORDERITEMIN-VOLUME = I_OUTPUT-VOLUM.
    ORDERITEMINX-VOLUME = 'X'.
    ENDIF.
    APPEND ORDERITEMIN.
    ORDERITEMINX-ITM_NUMBER = I_OUTPUT-POSNR.
    ORDERITEMINX-UNTOF_WGHT = 'X'.
    ORDERITEMINX-UPDATEFLAG = 'U'.
    APPEND ORDERITEMINX.
    V_VBELN = I_OUTPUT-VBELN.
    ENDLOOP.
    RUN BAPI ON LAST ORDER
    IF NOT ORDERITEMIN IS INITIAL.
    V_RECORDER = V_RECORDER + 1.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
    EXPORTING
    SALESDOCUMENT = V_VBELN
    ORDER_HEADER_INX = ORDERHEADERINX
    TABLES
    RETURN = RETURN
    ORDER_ITEM_IN = ORDERITEMIN
    ORDER_ITEM_INX = ORDERITEMINX.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    WAIT = 'X'
    IMPORTING
    RETURN = BAPIRETURN.
    WRITE OUT RETURN
    LOOP AT RETURN.
    WRITE: / RETURN.
    ENDLOOP.
    WRITE: / BAPIRETURN.
    SKIP.
    ENDIF.
    WRITE OUT RECORD COUNT FROM FILE
    WRITE: / 'RECORD COUNT FROM FILE ', V_RECIN.
    SKIP.
    WRITE OUT RECORD COUNT FROM FILE
    WRITE: / 'RECORD COUNT OF LINES TO CHANGE ', V_RECVBAP.
    SKIP.
    WRITE OUT RECORD COUNT FROM FILE
    WRITE: / 'RECORD COUNT OF ORDERS TO CHANGE ', V_RECORDER.
    SKIP.
    TOP OF PAGE
    TOP-OF-PAGE.
    WRITE:/1(5) TEXT-H01, 6(8) SY-DATUM MM/DD/YY,
    100(8) TEXT-H02, 126(8) SY-PAGNO.
    WRITE:/1(5) TEXT-H03, 6(8) SY-UZEIT USING EDIT MASK '__:__:__',
    20(77) TEXT-H04,
    100(8) TEXT-H05, 108(25) SY-REPID.
    WRITE:/1(6) TEXT-H06, 8(12) SY-UNAME,
    20(4) TEXT-H07, 25(32) SY-HOST,
    100(13) TEXT-H08, 121(8) SY-SYSID,
    129 '/', 130(3) SY-MANDT.
    ULINE.
    SKIP.
    regards.
    sowjanya.b

  • What value we need to pass as parameter in where clause in select query

    Hi ALL,
    I have written following query, it was executing fine and returning me all the rows with search criteria.
    SELECT *
    FROM
    PRTY_RQST PR
    JOIN BUSN_APPLC BIAP ON BIAP.BUSN_APPLC_ID = PR.BUSN_APPLC_ID
    JOIN INTN_STATS INSTS ON INSTS.INTN_STATS_ID = PR.INTN_STATS_ID
    JOIN INTN_PROCES_TYP INTPTY ON INTPTY.INTN_PROCES_TYP_ID = PR.INTN_PROCES_TYP_ID
    LEFT JOIN RQST_TYP RQSTYP ON RQSTYP.RQST_TYP_ID = PR.RQST_TYP_ID
    JOIN ADDTN_RQST_INFO ADTINF ON PR.PRTY_RQST_ID = ADTINF.PRTY_RQST_ID
    JOIN ADDTN_INFO_KEY_TYP ADDKEY ON ADTINF.ADDTN_INFO_KEY_TYP_ID = ADDKEY.ADDTN_INFO_KEY_TYP_ID
    JOIN PRTY_KEY PRTKEY ON PR.PRTY_RQST_ID = PRTKEY.PRTY_RQST_ID
    JOIN PRTY_KEY_TYP PRKYTP ON PRTKEY.PRTY_KEY_TYP_ID = PRKYTP.PRTY_KEY_TYP_ID
    WHERE (BIAP.BUSN_APPLC_NM = 'bpel')
    AND (INTPTY.INTN_PROCES_TYP_NM = 'FulfillmentOrder')
    AND (PR.UPDT_BY = 'update3')
    AND (INSTS.INTN_STATS_NM = 'Submitted')
    AND (PR.CHLD_RQST_IND = 'N')
    AND (PR.TRACK_RQST_IND = 'Y')
    AND (RQSTYP.RQST_TYP_NM = 'PensionPortfolioRebalance')
    AND (RQSTYP.RQST_CLASS_NM = 'Composite')
    AND (PRKYTP.PRTY_KEY_TYP_NM = 'NPIN')
    AND (PRTKEY.PRTY_TYP_VAL = '101101' )
    AND (ADDKEY.ADDTN_INFO_KEY_TYP_NM = 'PlanNumber')
    AND (ADTINF.ADDTN_RQST_TYP_VALUE = 'TBMBUpdated');
    My question here is i don't want pass the value for BIAP.BUSN_APPLC_NM, still want to get the values for remaing conditions. what value i need to pass here.
    I tried Null it giving me no rows. can some one help me on this.
    Thank you in advance.
    Vijay

    933325 wrote:
    thank you,
    since it is search criteria. I have to use OR instead of AND. this resolved my problem.
    SELECT *
    FROM
    PRTY_RQST PR
    JOIN BUSN_APPLC BIAP ON BIAP.BUSN_APPLC_ID = PR.BUSN_APPLC_ID
    JOIN INTN_STATS INSTS ON INSTS.INTN_STATS_ID = PR.INTN_STATS_ID
    JOIN INTN_PROCES_TYP INTPTY ON INTPTY.INTN_PROCES_TYP_ID = PR.INTN_PROCES_TYP_ID
    LEFT JOIN RQST_TYP RQSTYP ON RQSTYP.RQST_TYP_ID = PR.RQST_TYP_ID
    JOIN ADDTN_RQST_INFO ADTINF ON PR.PRTY_RQST_ID = ADTINF.PRTY_RQST_ID
    JOIN ADDTN_INFO_KEY_TYP ADDKEY ON ADTINF.ADDTN_INFO_KEY_TYP_ID = ADDKEY.ADDTN_INFO_KEY_TYP_ID
    JOIN PRTY_KEY PRTKEY ON PR.PRTY_RQST_ID = PRTKEY.PRTY_RQST_ID
    JOIN PRTY_KEY_TYP PRKYTP ON PRTKEY.PRTY_KEY_TYP_ID = PRKYTP.PRTY_KEY_TYP_ID
    WHERE (BIAP.BUSN_APPLC_NM = null )
    OR (INTPTY.INTN_PROCES_TYP_NM = 'FulfillmentOrder')
    OR (PR.UPDT_BY = 'update3')
    OR (INSTS.INTN_STATS_NM = 'Submitted')
    OR (PR.CHLD_RQST_IND = 'N')
    OR (PR.TRACK_RQST_IND = 'Y')
    OR (RQSTYP.RQST_TYP_NM = 'PensionPortfolioRebalance')
    OR (RQSTYP.RQST_CLASS_NM = 'Composite')
    OR (PRKYTP.PRTY_KEY_TYP_NM = 'NPIN')
    OR (PRTKEY.PRTY_TYP_VAL = '101101' )
    OR (ADDKEY.ADDTN_INFO_KEY_TYP_NM = 'PlanNumber')
    OR (ADTINF.ADDTN_RQST_TYP_VALUE = 'TBMBUpdated');
    AND (ADTINF.ADDTN_RQST_TYP_VAL_DT ='06-JUN-12 04.18.56.000000000 PM')
    AND (ADTINF.ADDTN_RQST_TYP_VAL_NUM ='123123') ;
    once again thank you all.But that's a completely different query than what was in the original post

  • What is the procedure/code in VBA for passing the calc scripts dynamically based on the selection.

    Hello Gurus,
    I want to know what is the procedure/code in VBA for passing the calc scripts dynamically based on the selection.
    For example:
    X=EssVCalculate("Sheetname","Calc_Script name",True)
    In the above code instead of the *"Calc_Script name"* I want a script which is called dynamically and the values are calculated accordingly.
    Thanks in advance
    Saurabh

    Hi Todd,
    This is the situation:
    I have a calc script in Essbase which I can call to perform the calculations on the current sheet that is retrieved. I want calculation for the following formulas:
    x = EssVCalculate("Sheet2", "CalcBC", False)
    CalcBC is my calc script which is present in Essbase
    So instead of passing the above script I want to pass the conditions dynamically in the VBA code . I don't want to mention the script name directly in EssVCalculate option
    For example:
    I have three drop down menus from which I would select three different( zero level )members. It would then retrieve the data for that particular values in the excel sheet and now when I click on Calculate button it should calculate the script dynamically.
    I don't know how calc scripts can be executed dynamically in the VBA code itself.
    Thanks in Advance
    Saurabh

  • Test Data Gerneration for  BAPI   "BAPI_PO_CREATE1"

    Hi All,
    We need to debug the   BAPI  "BAPI_PO_CREATE1"  in ECC(6.0) , since we need to test data we tried to use the Report
    "FBGENDAT"  and we set the parametes FBGENDAT  to 'X' in the  SU01  also. but we are not able to get the test data in ECC for the  BAPI.
    Can any one know what would be the problem
    Regards
    Channappa Sajjanar

    Hi Channappa,
    Please follow the steps described under the chapter FBGENDAT:
    http://wiki.sdn.sap.com/wiki/display/SRM/Shoppingcarttransfer
    and go through the steps of the note 539978 again.
    Important that you:
    - execute the report FBGENDAT with the parameter A or B, and fill the function name BAPI_PO_CREATE1 into the input field
    - check if indeed you have set the FBGENDAT=X for the RFC user.
    Regards,
    Peter

  • 3000: Invalid value(s) passed for arguments. NID= ANAME=WF_NOTE

    Hello,
    I'm getting the following error when calling a HRMS Self-Service Workflow behind the scenes using pl/sql:
    3000: Invalid value(s) passed for arguments. NID= ANAME=WF_NOTE
    For this particular workflow I customized the Review Page function/node attribute "HR_APPROVAL_REQ_FLAG" value from "No" to "Yes - Dynamic Approval" so that it would use an Approval Management rule that we created.
    When I go to enter a simple name change through Employee Self-Service with the changes listed above, it works fine. When I try to mimic the name change by calling the Workflow through pl/sql, I get the error listed above. It is stopping right on the Approval Notification activity.
    I know that "NID" stands for notificaiton_id, and it appears to me that the NID value is null. I'm not sure how I can set this value or what I should do next. Any help would be appreciated.
    Thanks

    the problem is with here.
    WF_Notification.respond(l_nid,p_result,p_user_name);
    and in the post notification function i call a procedure and code inside it is below
    l_nid           := wf_engine.context_nid;
    Wf_Engine.SetItemAttrNumber
    (itemtype     => itemtype,
         itemkey      => itemkey,
         aname      => 'NOTIFICATION_ID',
         avalue      => l_nid);
    vresult := wf_notification.GetAttrText(l_nid,'RESULT');
    if vresult is not null then
    resultout :=wf_engine.eng_completed||':'||wf_notification.GetAttrText(l_nid,'RESULT');
    else
    resultout :='COMPLETE';               
    end if;
    return;          
    end if;

  • What values to place in signer.properties file for Webutil configuration

    Hi. I'm not sure of what value to place in JDK_HOME in signer.properties for Webutil configuration. My current settings are:
    JDK_HOME=D:\ora9i\jdk
    JINIT_HOME=C:\Archivos de programa\Oracle\JInitiator 1.3.1.13
    #Certificate settings:
    # These are used to generate the initial signing certificate
    # Change them to suite your organisation
    DN_CN=Product Management
    DN_OU=Development Tools
    DN_O=Oracle
    DN_C=US
    JAR_KEY=webutil
    JAR_KEY_PASSWORD=webutil
    Is JDK_HOME the jdk for oracle or SDK for windows machine(how to find?)?. Also how do i repeat the process of makecert and signing of webutil.jar and jacob.jar?. If i try to repeat this process I get the following warnings or error?
    Makecert:
    keytool error: java.lang.Exception: Key pair not generated, alias <webutil> already exists
    Certificate created...

    JDK_HOME is just the location of a Java distribution with Keytool in it - have a look at the signer batch file and you'll see how each variable is used. Also if you run keytool from the command prompt it will show you the commands to delete and existing Key or list the keys that are currently stored.

  • What value to put in for a preference in the about:config forlder that would allow me to use the f12 key to enable/disable a firefox add-on.

    Im trying to set it up so hitting the F12 key will enable/disable Addblock Plus because their are some web sites I need it disabled completely on.
    The preference is already there in the about:config screen but the value is left blank for you to fill in if you want to use the feature.
    I just need to know what value would represent pressing the F12 Key

    '''F12''' is what you need as the string Value for '''extensions.adblockplus.enable_key'''

Maybe you are looking for

  • I did a refresh on my Fire fox browser and now I can't print anything. Help!

    Browser was hanging up and issuing a not responding message. this would last for a good period of time. then all of a sudden it would load my home page of Yahoo. Did a refresh of the browser and it solved the slowness of the page loading, but when I

  • Only Partitions Showing Up In Disk Utility, No USB Drive

    I recently reformatted a 1TB WD My Passport Ultra to the GUID partition table with three partitions (400-550-50) using the Mac OSX Extended Case-Sensitive Journaled Encrypted filesystem. Now in Disk Utility the actual disk is not showing up, instead

  • Trouble installing Photoshop CS4 on MacBook OS X 10.7.5

    I am having trouble installing Photoshop CS4 on my MacBook OS X 10.7.5. I have downloaded the software and when I go to install it gets hung up on the 'preparing to install' screen.

  • New objects not appearing in Integration Directory

    Created two new Message Interfaces and they aren't appearing in the Integration Directory when I create my Interface Determination. I copied an Interface that was appearing and the copy isn't showing either. I've checked the change lists in both syst

  • Audio not working in CS4

    Hello people, im sorry if this issue was talked about before, i did some research and i can't find the solution for this issue: i am using Premiere Pro CS4, Windows Vista64, 8GB RAM, i have a good audio card, when i first installed premiere, everythi