BAPI to upload service line to Quotation

Hi,
I'm using BAPI_QUOTATION_CREATEBOS for uploading Service lines into BOS
Qoutaion. We are able to upload single level service lines successfully
using the above BAPI. We are facing lot of difficulty on building up
multiple level upload through interface using the above BAPI. Can you
please help us in finding out the interface which can upload multiple
levels using the bapi or if there is any standard interface which can
be used for the same. Thanks in advance.
Regards,
Venu

Hi Vishal,
Here multiple line means what? Subitem functionality?
Sanjeev

Similar Messages

  • Service lines in purchase requsition BAPI

    Hi All.
    Does anybody know what is connection between item in PR and service lines for this item? I didn't manage to upload item with service lines, they are transmitted not like dependant records and therefore not created... What field should I use to show that this service line is fr this item.
    Thanks

    Sorry, I didn't mention that I use BAPI for BAPI createfromdata of business object BUS2105 Purchase Requisition...

  • BAPI Error: No account assignment exists for service line 0000000000

    I am using BAPI : BAPI_PO_CREATE1 to create a PO.
    I am getting this error while creating PO  "No account assignment exists for service line 0000000000"
    Please help.

    Yes...
    for each item i am creating one parent service record and one child service record with REQUISITION_SERVICES.
    the Package no for parent is the subpackage no for child.
    also for each item, I fill REQUISITION_ACCOUNT_ASSIGNMENT and REQUISITION_SRV_ACCASS_VALUES
    Still I get the Error.
    Thanks to help me resolve.

  • Bapi BAPI_PO_CREATE1 . Service po upload with contract reference.

    Hi Experts,
    I created an abap program for uploading service po using BAPI  'BAPI_PO_CREATE1'. Its working fine without Contract reference. But if I include contract reference in the item it will return error
    'Service SERVICE 1234: please enter a price'.
    the fields I use for entering contract reference are
    1) bapimepoitem-ref_doc and
    2) bapimepoitem-ref_item.
    Please help me out in this bcz its critical now.
    Edited by: arun.george on Sep 12, 2011 3:16 PM

    Hi Arun,
    Refer the posts mentioned below:
    Link: [BAPI_PO_CREATE1;
    Link: [BAPI_PO_CREATE1;
    Link: [Contract Number and Item not transferred to limits in SAP PO;
    Try these hints. If still you face any issues, post further.
    Regards,
    Pranav.

  • Error in BAPI RETURN for Service Contract

    Hi,
      I get an error in the BAPI Return for the Uploading the Service Contracts by LSMW. The Error Message is E BS No status object is available for &.Also want to know can we upload multiple line of header text for a Contract by this BAPI. If so then how would I do this , as the BAPI structure BAPISDTEXT has textline upto 132 characters. And I am take only one file in LSMW where the header & details come alongwith text. Or could also tell me the file structure of for the data upload. The legacy system sends multiple text in the header for a Contract.For Eg.
    Header1 Detail1 Text1
    HEader1 Detail2 Text2
    Header1 Detail3 Text3
    So I would need this text1TEXT2text3 in the Header Text of the Contracts. Or do I need the change the file structure. Many thanks for your time and help.

    Thanks Nablan, I could do that for multiple header coming in file. But I have a question for you on BAdI ALM_ME_006_GOODSMVT. I have implemented this BAdI , and this BAdI is called by a function Module ALM_MEREP_006_CREATE. When I test this FM giving the Material , Orderid and Movement type entries, this BAdI is triggered when giving a breakpoint. I've given this code for changing the movement type to 961. Cause the stanadrd scenario does not maintain Movement type 961 in Mobile Asset Management. The Movement type 961 for unplanned Materials comes to SAP and changes to 261 as maiantained by TCOKO table. To bypass this & retain the movement type 961 in SAP I'm using this BAdI. Currently this is what I'm doing and am stuck in the method interface how do I call the method.
    method IF_EX_ALM_ME_006_GOODSMVT~CREATE .
    break-point.
    *DATA : i_ce_goodsmovement TYPE REFERENCE
              ALM_ME_CUSTOMER_ENHANCEMENT.
    DATA : lr_badi_goods_movement TYPE REF TO if_ex_alm_me_006_goodsmvt.
    DATA : ls_user_data TYPE ALM_ME_USER_DATA-USERID.
    *DATA : goods_movement TYPE ALM_ME_MATERIAL_MOVEMENT.
    CALL METHOD lr_badi_goods_movement->create
      EXPORTING
           ce_goodsmovement = ce_goodsmovement
      IMPORTING
           user_data        = ls_user_data
           custom_user_data = ls_ce_user_data
           goods_movement   = goods_movement
      changing
           return           = return[].
    CALL FUNCTION 'ALM_ME_COMMIT_OR_ROLLBACK'
           TABLES
                return = return.
    endmethod.
    Please help me to get the data in this method. How do I call this.

  • BAPI Error: No schedule lines due for delivery up to the selected date

    Hi,
    I have created a program to create delivery orders with reference to sales orders using BAPI - BAPI_OUTB_DELIVERY_CREATE_SLS.
    After execution I get the error: No schedule lines due for delivery up to the selected date
    Please help.
    Thanks in advance!!!
    Regards,
    Sriram

    hi,
    this is to inform you that,
    please check the schedule line date in the sales order because the date is not matching here for the BAPI to upload.
    here,  for example the schedule line is 4 days after and you are running BAPI today. that will mismatch no.
    the same thing is happening in uploading case also.
    so please check the date.
    because in teh sales order if teh schedule line date is today it will accept the uploading with out throwing any errors.
    regards,
    balajia

  • How to create 'Planned service line' using BAPI_ENTRYSHEET_CREATE? Pl. help

    I need to create service entry sheet ( SES ) using input data from text file through BAPI_ENTRYSHEET_CREATE.
    If the input contains service line items, which are not present in PO, it should be treated as an unplanned service and correspondingly 'unplanned' indicator is to be set on ML81N ( Service netry sheet ) display.
    I want to make an entry unplanned if the input field external no. ( Field: BAPIESLLC-EXT_LINE ) is not matching with external no. field of corresponding purchase order to which the SES refers.
    The BAPI works fine for all cases except one. If the unplanned service line contains field SERVICE_NO value which is matching with a SERVICE_NO in PO, it is invariable treated by BAPI as  'PLANNED'. ie. BAPI decides whenther a service line is planned or unplanned based on SERVICE_NO only.
    For eg. Let a PO contains one service line with SERVICE_NO value 1008505.
                If SES input file contains 2 service entries with SERVICE_NO value 1008505.
                While creating SES, the BAPI should treat first entry as 'planned' and second line as 'unplanned'.
                But while running the program, both lines are created as 'Planned'  only, since SERVICE_NO value 1008505 exists in the PO.
    I need to set the service line planned/unplanned through my prgram, overriding the automatic setting up of BAPI_ENTRYSHEET_CREATE.
    Hope this clarifies my requirement.
    Grateful if somebody cam provide a solution.
    Thanks & Regards,
    Manju

    Do NOT USE BAPI_SALESORDER_CREATEFROMDATA, that FM is obsolete!
    Use BAPI_SALESORDER_CREATEFROMDAT1 .
    To build a reference to your contract you have to supply ORDER_HEADER_IN.
    Here´s a sample:
    MOVE:
    gs_vbak-vbeln TO ls_bapisdhd1-refobjkey,
    gs_vbak-vbeln TO ls_bapisdhd1-ref_doc,
    gs_vbak-vbtyp TO ls_bapisdhd1-refdoc_cat,
    gs_vbak-auart TO ls_bapisdhd1-refdoctype.
    also gothrouh the links
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/abap%2b-%2bsimple%2bprogram%2bto%2bcreate%2bsales%2border%2busing%2bbapi

  • Se518 no account assignment exists for service line

    Hi Experts,
    We are using SRM701 Patch 04. I am creating a RFx with a limit item then create the purchase order based on the accepted bid. We found the error message SE518 in backend system via /SAPPO/PPO2 when we are using the driver function "/SAPSRM/CL_SOA_ADPT_PO_CRT_ERP". But If I changed the Driver function to "CL_BBP_BS_ADAPTER_PO_CRT_ERP10", it can be created successfully.
    Please advise how to fix the issue when we are using /SAPSRM/CL_SOA_ADPT_PO_CRT_ERP. Thanks a lot
    regards,
    Jian

    Hiren,
    Every service line will have to be assigned to a G/L account or Cost Center. That is what the error message of the BAPI is.
    Pass the required account assignment details in the BAPI and that should get rectified.
    Regards,
    Ravi
    Note : Please reward the posts that are helpful

  • Bapi_po_create1 ,No account assignment exist for service line 0000000000'. for po limits,how to create multiple service items in service po

    hi,
    Hello all, please help!! I used function BAPI_PO_CREATE1 to create PO with limit item but function returned message error '518 No account assignment exist for service line 0000000000'. Can anyone give me an idea to slove this problem?
    i am passing po header, po headerx, po item , po itemx, po account, po accountx, po limits, po services, po service values, to bapi. if i comment package number in po limits structure , po was creating but limits data not updating in po., if i pass package number i am getting above error.
    Thanks In Advance,
    regards

    hi Dinesh,
    am also having same error for bap po create1 . did it get resolved for you? please help its urgently needed for me here

  • BAPI_REQUISITION_CREATE: Err-No account assignment exists for service line

    Hi Frnds,
    I am using bapi BAPI_REQUISITION_CREATE to create PR with mutiple Service line.
    I am getting an error message SE518 - No account assignment exists for service line 0000000000.
    Can anyone of you help me out to solve this issue?
    Thanks in advance
    Suganya

    HI
    I need to create pucharse-requisition for services with account assignment K.
    execute BAPI_REQUISITION_CREATE with an item with a service and work well.
    When I prove with two items each one with its service gives east error me
    "E518, No account assignment exists for service line 0000000010"
    my source is:
    REPORT Z_WGS_BAPI_REQUISIT_CREATE_002
                                      NO STANDARD PAGE HEADING LINE-SIZE 180
                          START-OF-SLECTION                              *
    DATA:
    W_NUMBER             LIKE  BAPIEBANC-PREQ_NO,
    W_REQUISITION_ITEMS LIKE BAPIEBANC           OCCURS 0 WITH HEADER LINE,
    W_REQUISITION_ACCOUNT LIKE BAPIEBKN          OCCURS 0 WITH HEADER LINE,
    W_REQUISITION_SERVICES LIKE BAPIESLLC        OCCURS 0 WITH HEADER LINE,
    W_REQUISITION_SRV_VALUES LIKE BAPIESKLC      OCCURS 0 WITH HEADER LINE,
    W_RETURN             LIKE BAPIRETURN         OCCURS 0 WITH HEADER LINE,
    W_RETURN1            LIKE  BAPIRET2          OCCURS 0 WITH HEADER LINE.
    START-OF-SELECTION.
    perform item_10.
    perform item_20.
    perform bapi.
    form item_10.
    **Item 10
    W_REQUISITION_ITEMS-DOC_TYPE = 'NB'.
    W_REQUISITION_ITEMS-PREQ_ITEM = '00010'.
    W_REQUISITION_ITEMS-ACCTASSCAT = 'K'.
    W_REQUISITION_ITEMS-ITEM_CAT = '9'.
    W_REQUISITION_ITEMS-PUR_GROUP = 306.
    W_REQUISITION_ITEMS-PURCH_ORG = '9000'.
    W_REQUISITION_ITEMS-PLANT    = 'CO95'.
    W_REQUISITION_ITEMS-PREQ_NAME = 'EORTIZ'.
    W_REQUISITION_ITEMS-DELIV_DATE = SY-DATUM.
    W_REQUISITION_ITEMS-SHORT_TEXT = 'Servicio 1'.
    W_REQUISITION_ITEMS-MAT_GRP = 'SER-0005'.
    W_REQUISITION_ITEMS-QUANTITY = '1.000'.
    W_REQUISITION_ITEMS-PCKG_NO = '0000000001'.
    W_REQUISITION_ITEMS-GR_IND = 'X'.
    W_REQUISITION_ITEMS-IR_IND = 'X'.
    W_REQUISITION_ITEMS-FIXED_VEND = space.
    W_REQUISITION_ITEMS-INFO_REC = space.
    APPEND W_REQUISITION_ITEMS. CLEAR W_REQUISITION_ITEMS.
    W_REQUISITION_ACCOUNT-PREQ_ITEM = '00010'.
    W_REQUISITION_ACCOUNT-SERIAL_NO = '01'.
    W_REQUISITION_ACCOUNT-COST_CTR = '0001010106'.
    W_REQUISITION_ACCOUNT-G_L_ACCT = '0063010001'.
    APPEND W_REQUISITION_ACCOUNT. CLEAR W_REQUISITION_ACCOUNT.
    W_REQUISITION_SERVICES-PCKG_NO     =  '0000000001'.
    W_REQUISITION_SERVICES-LINE_NO     =  '0000000001'.
    W_REQUISITION_SERVICES-EXT_LINE    =  '0000000000'.
    W_REQUISITION_SERVICES-SUBPCKG_NO  =  '0000000002'.
    W_REQUISITION_SERVICES-FROM_LINE   =  '1'.
    W_REQUISITION_SERVICES-PLN_LINE   =  '0000000001'.
    APPEND W_REQUISITION_SERVICES. CLEAR W_REQUISITION_SERVICES.
    W_REQUISITION_SERVICES-PCKG_NO     =  '0000000002'.
    W_REQUISITION_SERVICES-LINE_NO     =  '0000000002'.
    W_REQUISITION_SERVICES-EXT_LINE    =  '0000000010'.
    W_REQUISITION_SERVICES-SUBPCKG_NO  =  '0000000000'.
    W_REQUISITION_SERVICES-SERVICE    =  '000000000003000001'.
    W_REQUISITION_SERVICES-QUANTITY   =  '5.000'.
    W_REQUISITION_SERVICES-BASE_UOM   =  'UN'.
    W_REQUISITION_SERVICES-GR_PRICE   =  '150.0000'.
    APPEND W_REQUISITION_SERVICES. CLEAR W_REQUISITION_SERVICES.
    W_REQUISITION_SRV_VALUES-PCKG_NO    =  '0000000002'.
    W_REQUISITION_SRV_VALUES-LINE_NO    =  '0000000002'.
    W_REQUISITION_SRV_VALUES-SERNO_LINE = '01'.
    W_REQUISITION_SRV_VALUES-SERIAL_NO  =  '01'.
    W_REQUISITION_SRV_VALUES-PERCENTAGE  = '100.0'.
    APPEND W_REQUISITION_SRV_VALUES. CLEAR W_REQUISITION_SRV_VALUES.
    endform.
    form item_20.
    item 20
    W_REQUISITION_ITEMS-DOC_TYPE =   'NB'.
    W_REQUISITION_ITEMS-PREQ_ITEM = '00020'.
    W_REQUISITION_ITEMS-ACCTASSCAT = 'K'.
    W_REQUISITION_ITEMS-ITEM_CAT = '9'.
    W_REQUISITION_ITEMS-PUR_GROUP = '306'.
    W_REQUISITION_ITEMS-PURCH_ORG = '9000'.
    W_REQUISITION_ITEMS-PLANT    = 'CO95'.
    W_REQUISITION_ITEMS-PREQ_NAME = 'EORTIZ'.
    W_REQUISITION_ITEMS-DELIV_DATE = SY-DATUM.
    W_REQUISITION_ITEMS-SHORT_TEXT = 'Servicio 2'.
    W_REQUISITION_ITEMS-MAT_GRP = 'SER-0005'.
    W_REQUISITION_ITEMS-QUANTITY = '1.000'.
    W_REQUISITION_ITEMS-PCKG_NO = '0000000003'.
    W_REQUISITION_ITEMS-GR_IND = 'X'.
    W_REQUISITION_ITEMS-IR_IND = 'X'.
    W_REQUISITION_ITEMS-FIXED_VEND = space.
    W_REQUISITION_ITEMS-INFO_REC = space.
    APPEND W_REQUISITION_ITEMS. CLEAR W_REQUISITION_ITEMS.
    W_REQUISITION_ACCOUNT-PREQ_ITEM = '00020'.
    W_REQUISITION_ACCOUNT-SERIAL_NO = '01'.
    W_REQUISITION_ACCOUNT-COST_CTR = '0001010106'.
    W_REQUISITION_ACCOUNT-G_L_ACCT = '0063010001'.
    APPEND W_REQUISITION_ACCOUNT. CLEAR W_REQUISITION_ACCOUNT.
    W_REQUISITION_SERVICES-PCKG_NO     =  '0000000003'.
    W_REQUISITION_SERVICES-LINE_NO     =  '0000000003'.
    W_REQUISITION_SERVICES-EXT_LINE    =  '0000000000'.
    W_REQUISITION_SERVICES-SUBPCKG_NO  =  '0000000004'.
    W_REQUISITION_SERVICES-FROM_LINE   =  '1'.
    APPEND W_REQUISITION_SERVICES. CLEAR W_REQUISITION_SERVICES.
    W_REQUISITION_SERVICES-PCKG_NO     =  '0000000004'.
    W_REQUISITION_SERVICES-LINE_NO     =  '0000000004'.
    W_REQUISITION_SERVICES-EXT_LINE    =  '0000000010'.
    W_REQUISITION_SERVICES-SUBPCKG_NO  =  '0000000000'.
    W_REQUISITION_SERVICES-SERVICE    =  '000000000003000002'.
    W_REQUISITION_SERVICES-QUANTITY   =  '10.000'.
    W_REQUISITION_SERVICES-BASE_UOM   =  'UN'.
    W_REQUISITION_SERVICES-GR_PRICE   =  '90.0000'.
    APPEND W_REQUISITION_SERVICES. CLEAR W_REQUISITION_SERVICES.
    W_REQUISITION_SRV_VALUES-PCKG_NO    =  '0000000004'.
    W_REQUISITION_SRV_VALUES-LINE_NO    =  '0000000004'.
    W_REQUISITION_SRV_VALUES-SERNO_LINE = '01'.
    W_REQUISITION_SRV_VALUES-SERIAL_NO  =  '01'.
    W_REQUISITION_SRV_VALUES-PERCENTAGE  = '100.0'.
    APPEND W_REQUISITION_SRV_VALUES. CLEAR W_REQUISITION_SRV_VALUES.
    endform.
    form bapi.
    BAPI
      CALL FUNCTION 'BAPI_REQUISITION_CREATE'
      EXPORTING
        SKIP_ITEMS_WITH_ERROR          =
       AUTOMATIC_SOURCE                = 'X'
        IMPORTING
          NUMBER                         = W_NUMBER
        TABLES
          REQUISITION_ITEMS              = W_REQUISITION_ITEMS
          REQUISITION_ACCOUNT_ASSIGNMENT = W_REQUISITION_ACCOUNT
        REQUISITION_ITEM_TEXT          =
        REQUISITION_LIMITS             =
        REQUISITION_CONTRACT_LIMITS    =
          REQUISITION_SERVICES           = W_REQUISITION_SERVICES
          REQUISITION_SRV_ACCASS_VALUES  = W_REQUISITION_SRV_VALUES
          RETURN                         = W_RETURN.
        REQUISITION_SERVICES_TEXT      =
        REQUISITION_ADDRDELIVERY       =
        EXTENSIONIN                    =
    ejecuta commit
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          WAIT   = 'X'
        IMPORTING
          RETURN = W_RETURN1.
      LOOP AT  W_RETURN.          .
        WRITE: / SY-TABIX,
        / 'W_RETURN-TYPE:', W_RETURN-TYPE,
        / 'W_RETURN-CODE:', W_RETURN-CODE,
        / 'W_RETURN-MESSAGE:', W_RETURN-MESSAGE,
        / 'W_RETURN-LOG_NO:', W_RETURN-LOG_NO,
        / 'W_RETURN-LOG_MSG_NO:', W_RETURN-LOG_MSG_NO,
        / 'W_RETURN-MESSAGE_V1:', W_RETURN-MESSAGE_V1,
        / 'W_RETURN-MESSAGE_V2:', W_RETURN-MESSAGE_V2,
        / 'W_RETURN-MESSAGE_V3:', W_RETURN-MESSAGE_V3,
        / 'W_RETURN-MESSAGE_V4:', W_RETURN-MESSAGE_V4.
        ULINE.
      ENDLOOP.
    endform.

  • BAPI_PO_CREATE1-No account assignment exists for service line 0000000000

    Hi guys
    I'm trying to use the above BAPI to create purchase orders from legacy system. I have populated ALL of the required tables (including the Xs) but I was returned the above error: No account assignment exists for service line 0000000000.
    I have populated fields in the POLIMITS structure 
    POLIMITS-PCKG_NO
    POLIMITS-LIMIT
    POLIMITS-EXP_VALUE.
    Any solutions?
    Thanks in advance.
    Cheers!

    hi Dinesh,
    am also having same error for bap po create1 . did it get resolved for you? please help its urgently needed for me here

  • BAPI_PO_CREATE1, Service line, PREQ_NO

    Hi friends,
    I use bapi_po_create1 in combination with purchase requesition and service.
    Retunrvalue is with Msg: SE 518 - No account assignment exists for service line 0000000010.
    Population  is without preq_no and item possible. If I use transaction code ME21N with same population, purchase order will be created.
    Thank you in advance for your help and ideas
    Here is the population of fields...
    po_header-COMP_CODE = '1000' .
    po_header-DOC_TYPE = 'NB' .
    po_header-ITEM_INTVL = '00010' .
    po_header-VENDOR = '0000001101'.
    po_header-PMNTTRMS = '0001' .
    po_header-PURCH_ORG = '1000' .
    po_header-PUR_GROUP = '008' .
    po_header-CURRENCY = 'EUR' .
    populated same header X-Flags
    po_item_-PO_ITEM = '00010' .
    po_item_-PLANT = '1000' .
    po_item_-QUANTITY = '1.000' .
    po_item_-TAX_CODE = 'V0' .
    po_item_-item_cat = '9'. "Leist
    po_item_-ACCTASSCAT = 'F'.
    po_item_-short_text = 'Leistung'.
    po_item_-NET_PRICE = '12'.
    po_item_-MATL_GROUP = '007'.
    po_item_-PCKG_NO = '0100002226'.
    po_item_-PREQ_NO =  '0010008985'.
    po_item_-PREQ_ITEM = '00010'.
    populated same itemx-Flags...
    po_sched-PO_ITEM = '00010'.
    po_sched-SCHED_LINE = '0001' .
    po_sched-DELIVERY_DATE = '20060526'.
    with account fields  and account assignment fields (X-Flags)
    po_acc-PO_ITEM = '00010' .
    po_acc-SERIAL_NO = '01' .
    po_acc-QUANTITY = '1' .
    po_acc-GL_ACCOUNT = '0000400000' .
    po_acc-COSTCENTER = '0000001000' .
    po_acc-CO_AREA = '1000' .
    Fields of Service:
    po_serv-PCKG_NO = '0100002226'.
    po_serv-line_no = '0000000001'.
    po_serv-OUTL_IND = 'X'.
    po_serv-SUBPCKG_NO = '0100002227'.
    po_serv-SHORT_TEXT   = 'TEST LEISTUNG'.
    po_serv-QUANTITY = '1.000' .
    po_serv-BASE_UOM = 'LE'.
    po_serv-GR_PRICE   = '1'.
    append po_serv to po_services.
    second item
    po_serv-PCKG_NO = '0100002227'. "'0100002506'.
    po_serv-line_no = '0000000002'.
    po_serv-EXT_LINE  =  '0000000010'.
    po_serv-MATL_GROUP = '007'.
    po_serv-OUTL_IND  = ''.
    and item to accesvalue:
    po_accval-PCKG_NO = '0100002227'.
    po_accval-line_no = '0000000002'.
    po_accval-serno_line = '01'.
    po_accval-SERIAL_NO   = '01'. "Link to account assing
    po_accval-PERCENTAGE  = '100'.
    po_accval-QUANTITY = '1'.
    po_accval-NET_VALUE   = '1'.

    Hi,
    I am able tio create PO with the following data in combination with PR. Pls check.
    PO Header Data:
    PO_NUMBER
    COMP_CODE                      ZN01
    DOC_TYPE                       ZPRC
    DELETE_IND
    STATUS
    CREAT_DATE
    CREATED_BY
    ITEM_INTVL                     00000
    VENDOR
    LANGU                          EN
    LANGU_ISO
    PMNTTRMS
    DSCNT1_TO                        0
    DSCNT2_TO                        0
    DSCNT3_TO                        0
    DSCT_PCT1                      0,000
    DSCT_PCT2                      0,000
    PURCH_ORG                      ZNPR
    PUR_GROUP                      ZPG
    CURRENCY                       USD
    CURRENCY_ISO
    EXCH_RATE
    EX_RATE_FX
    DOC_DATE                       26.06.2006
    VPER_START
    VPER_END
    WARRANTY
    QUOTATION
    QUOT_DATE
    REF_1
    SALES_PERS
    TELEPHONE
    SUPPL_VEND
    CUSTOMER
    AGREEMENT
    GR_MESSAGE
    SUPPL_PLNT
    INCOTERMS1
    INCOTERMS2
    COLLECT_NO
    DIFF_INV
    OUR_REF
    LOGSYSTEM
    SUBITEMINT                     00000
    PO_REL_IND
    REL_STATUS
    VAT_CNTRY
    VAT_CNTRY_ISO
    REASON_CANCEL                  00
    PO Item Data:
    PO_ITEM                        00010
    DELETE_IND
    SHORT_TEXT                     MATERIAL 1 - XPRO PC
    MATERIAL
    MATERIAL_EXTERNAL
    MATERIAL_GUID
    MATERIAL_VERSION
    EMATERIAL
    EMATERIAL_EXTERNAL
    EMATERIAL_GUID
    EMATERIAL_VERSION
    PLANT                          ZNP1
    STGE_LOC
    TRACKINGNO
    MATL_GROUP                     00706
    INFO_REC
    VEND_MAT
    QUANTITY                                 10,000
    PO_UNIT                        EA
    PO_UNIT_ISO
    ORDERPR_UN
    ORDERPR_UN_ISO
    CONV_NUM1                          0
    CONV_DEN1                          0
    NET_PRICE                                         1.000,000000000
    PRICE_UNIT                       100
    GR_PR_TIME                       0
    TAX_CODE
    BON_GRP1
    QUAL_INSP
    INFO_UPD
    PRNT_PRICE
    EST_PRICE
    REMINDER1                        0
    REMINDER2                        0
    REMINDER3                        0
    OVER_DLV_TOL                   0,0
    UNLIMITED_DLV
    UNDER_DLV_TOL                  0,0
    VAL_TYPE
    NO_MORE_GR
    FINAL_INV
    ITEM_CAT
    ACCTASSCAT                     K
    DISTRIB
    PART_INV
    GR_IND                         X
    GR_NON_VAL
    IR_IND                         X
    FREE_ITEM
    GR_BASEDIV                     X
    ACKN_REQD
    ACKNOWL_NO
    AGREEMENT
    AGMT_ITEM                      00000
    SHIPPING
    CUSTOMER
    COND_GROUP
    NO_DISCT
    PLAN_DEL                         0
    NET_WEIGHT                                0,000
    WEIGHTUNIT
    WEIGHTUNIT_ISO
    TAXJURCODE
    CTRL_KEY
    CONF_CTRL
    REV_LEV
    FUND
    FUNDS_CTR
    CMMT_ITEM
    PRICEDATE
    PRICE_DATE
    GROSS_WT                                  0,000
    VOLUME                                    0,000
    VOLUMEUNIT
    VOLUMEUNIT_ISO
    INCOTERMS1
    INCOTERMS2
    PRE_VENDOR
    VEND_PART                      NWV05
    HL_ITEM                        00000
    GR_TO_DATE
    SUPP_VENDOR
    SC_VENDOR
    KANBAN_IND
    ERS
    R_PROMO
    POINTS                                    0,000
    POINT_UNIT
    POINT_UNIT_ISO
    SEASON
    SEASON_YR
    BON_GRP2
    BON_GRP3
    SETT_ITEM
    MINREMLIFE                         0
    RFQ_NO
    RFQ_ITEM                       00000
    PREQ_NO                        5000000011
    PREQ_ITEM                      00010
    REF_DOC
    REF_ITEM                       00000
    SI_CAT
    RET_ITEM
    AT_RELEV
    ORDER_REASON
    BRAS_NBM
    MATL_USAGE
    MAT_ORIGIN
    IN_HOUSE
    INDUS????
    INF_INDEX
    UNTIL_DATE
    DELIV_COMPL
    SHIP_BLOCKED
    PREQ_NAME                      CCMUSR
    PERIOD_IND_EXPIRATION_DATE     D
    INT_OBJ_NO                     000000000000000000
    PCKG_NO                        0000000000
    BATCH
    VENDRBATCH
    CALCTYPE
    NO_ROUNDING
    PO_PRICE
    SRV_BASED_IV
    PO Account Data:
    PO_ITEM                        00010
    SERIAL_NO                      00
    DELETE_IND
    CREAT_DATE
    QUANTITY                                  0,000
    DISTR_PERC                      0,0
    NET_VALUE                                             0,000000000
    GL_ACCOUNT                     400998
    BUS_AREA
    COSTCENTER                     CC_1
    SD_DOC
    ITM_NUMBER                     000000
    SCHED_LINE                     0000
    ASSET_NO
    SUB_NUMBER
    ORDERID
    GR_RCPT
    UNLOAD_PT
    CO_AREA                        ZN01
    COSTOBJECT
    PROFIT_CTR
    WBS_ELEMENT
    NETWORK
    RL_EST_KEY
    PART_ACCT
    CMMT_ITEM
    REC_IND
    FUNDS_CTR
    FUND
    FUNC_AREA
    REF_DATE
    TAX_CODE
    TAXJURCODE
    NOND_ITAX                                             0,000000000
    ACTTYPE
    CO_BUSPROC
    RES_DOC
    RES_ITEM                       000
    ACTIVITY

  • With  'BAPI_REQUISITION_CREATE' not able to create service line item

    Hi Experts
    Please help me with this.
    Am working with 'BAPI_REQUISITION_CREATE'. Able to create PR ( with constant data) but the service line item is not seen with ME53N. No error message displayed. Have checked the SAP note 420331.
    The code is as below:
    move '9' to  it_BAPIEBANC-ITEM_CAT. 
    move 'sdfgsdfgdfsg'  to     it_BAPIEBANC-SHORT_TEXT. 
    move 'F' to it_BAPIEBANC-ACCTASSCAT.
    move 1 to       it_BAPIEBANC-QUANTITY.
    move 'M2' to      it_BAPIEBANC-UNIT.
    move '1'  to  it_BAPIEBANC-DEL_DATCAT. "it_file-del_date_cat
      move sy-datum to      it_BAPIEBANC-DELIV_DATE.
      move '100CC' to        it_BAPIEBANC-MAT_GRP.
      move '1CEN'  to it_BAPIEBANC-PLANT.
      move 'CIVIL' to it_BAPIEBANC-PREQ_NAME.
        move '1001' to it_BAPIEBANC-PURCH_ORG.
      move 'P11' to it_BAPIEBANC-PUR_GROUP.
      MOVE 'NB' TO it_BAPIEBANC-DOC_TYPE.
    MOVE 'X' TO it_BAPIEBANC-GR_IND.
    MOVE 'X' TO it_BAPIEBANC-IR_IND.
    CALL FUNCTION 'NUMBER_GET_NEXT'
           EXPORTING
                NR_RANGE_NR = '01'
                OBJECT = 'SERVICE'
           IMPORTING
                NUMBER = v_packno
                RETURNCODE = RCODE.
      it_BAPIEBANC-PCKG_NO = v_packno.
      MOVE '00010' to it_BAPIEBANC-PREQ_ITEM.
      APPEND it_BAPIEBANC.
      CLEAR it_BAPIEBANC.
      move '000001000341'  to  it_BAPIEBKN-ORDER_NO.
      move 'AMINFRA'  to     it_BAPIEBKN-COST_CTR.
      move '0040401100' to    it_BAPIEBKN-G_L_ACCT.
      MOVE '00010' to it_BAPIEBKN-PREQ_ITEM.
      MOVE '01' to it_BAPIEBKN-SERIAL_NO.
      APPEND it_BAPIEBKN.
      CLEAR it_BAPIEBKN.
    move v_packno to IT_BAPIESLLC-PCKG_NO.
    IT_BAPIESLLC-subpckg_no = v_packno + 1 .
    move '0000000001' to IT_BAPIESLLC-LINE_NO.
    move '0000000000' to IT_BAPIESLLC-EXT_LINE.
    MOVE 'sdfgsdfgf'  TO  IT_BAPIESLLC-SHORT_TEXT.
    IT_BAPIESLLC-OUTL_IND = 'X'.
    IT_BAPIESLLC-FROM_LINE = '1'.
      APPEND IT_BAPIESLLC.
      CLEAR IT_BAPIESLLC.
    **service with master
      IT_BAPIESLLC-PCKG_NO = V_PACKNO + 1.
      IT_BAPIESLLC-subpckg_no = 0 .
      move '0000000002' to IT_BAPIESLLC-LINE_NO.
      move '0000000010' to IT_BAPIESLLC-EXT_LINE.
      move '000000000003000193' TO  IT_BAPIESLLC-SERVICE.
      MOVE 'sdfgsdfgf'  TO  IT_BAPIESLLC-SHORT_TEXT. "it_file-DESC(40)
      MOVE 1      TO  IT_BAPIESLLC-QUANTITY. "it_file-QTY
      MOVE 'M2'      TO  IT_BAPIESLLC-BASE_UOM. "it_file-UNIT
      IT_BAPIESLLC-UOM_ISO = 'MTK'.
      MOVE 1      TO  IT_BAPIESLLC-price_unit .
      IT_BAPIESLLC-GR_PRICE = 100.
      APPEND IT_BAPIESLLC.
      CLEAR IT_BAPIESLLC.
    service without master
      IT_BAPIESLLC-PCKG_NO = V_PACKNO + 1.
      IT_BAPIESLLC-subpckg_no = 0 .
      move '0000000003' to IT_BAPIESLLC-LINE_NO.
      move '0000000020' to IT_BAPIESLLC-EXT_LINE.
    move '000000000003000193' TO  IT_BAPIESLLC-SERVICE.
      MOVE 'sdfgsdfgf'  TO  IT_BAPIESLLC-SHORT_TEXT. "it_file-DESC(40)
      MOVE 1      TO  IT_BAPIESLLC-QUANTITY. "it_file-QTY
      MOVE 'M2'      TO  IT_BAPIESLLC-BASE_UOM. "it_file-UNIT
      IT_BAPIESLLC-UOM_ISO = 'MTK'.
      MOVE 1      TO  IT_BAPIESLLC-price_unit .
        IT_BAPIESLLC-GR_PRICE = 100.
      APPEND IT_BAPIESLLC.
      CLEAR IT_BAPIESLLC.
    it_BAPIESKLC-PCKG_NO = v_packno + 1.
    it_BAPIESKLC-LINE_NO = '0000000002'.
    it_BAPIESKLC-SERNO_LINE = '01'.
    it_BAPIESKLC-SERIAL_NO = '01'.
    it_BAPIESKLC-PERCENTAGE = '100'.
    it_BAPIESKLC-QUANTITY = 2.
      APPEND IT_BAPIESKLC.
      CLEAR IT_BAPIESKLC.
    it_BAPIESKLC-PCKG_NO = v_packno + 1.
    it_BAPIESKLC-LINE_NO = '0000000003'.
    it_BAPIESKLC-SERNO_LINE = '01'.
    it_BAPIESKLC-SERIAL_NO = '01'.
    it_BAPIESKLC-PERCENTAGE = '100'.
    it_BAPIESKLC-QUANTITY = 2.
      APPEND IT_BAPIESKLC.
      CLEAR IT_BAPIESKLC.
      CALL FUNCTION 'BAPI_REQUISITION_CREATE'   IMPORTING
         NUMBER                               = REQ_NO
        TABLES
          REQUISITION_ITEMS                   = it_BAPIEBANC
          REQUISITION_ACCOUNT_ASSIGNMENT      = it_BAPIEBKN
         REQUISITION_SERVICES                 = IT_BAPIESLLC
         REQUISITION_SRV_ACCASS_VALUES        = it_BAPIESKLC
        RETURN                               = IT_BAPIRETURN.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    Thnx and Regards
    Ebrahim

    First read [Note 499626 - FAQ: BAPIs in the service procurement|https://service.sap.com/sap/support/notes/499626] and especially  [Note 420331 - BAPI_REQUISITION_CREATE: Template for services|https://service.sap.com/sap/support/notes/420331]
    Regards,
    Raymond

  • BAPI_REQUISITION_CREATE, Need an error for Service lines no material grp

    In Purchase requisition must not be created after passing all the data in reqitem, accass, service, item_limit, Item_text if there is no material group in the service line.
    Is it possible? BAPI is creating PR without material group. I want to restrict that.

    Hi,
    Request you to post this query to appropriate forum, as this does not pertain to travel management, to get a quick response.
    Regards,
    LNB

  • BAPI_PR_CREATE for Service line items only

    Hi All,
    We are unable to create the Purchase Requistion Order using the BAPI_PR_CREATE for Service line items.
    The Error Message 436(06) " In case of account assignment, please enter acc. assignment data for item" is always received with respect to Account Assignment.
    We are currently using ECC 6.0 EHP 4. SAP instance to create the Purchase requisition order.
    We already did this analysis and came to this include previously for the Error Message 436(06) and could find thatt the accounting tables are not filled.
    Also, the accounting items table is refreshed and deleted in 3 places in the code.
    We did put debug on that u2026 but during debug, the control does not go to these places.
    I suppose there is some other major functionality related to Service PR is missing in the BAPI_PR_CREATE.
    Also we are unable to find the detailed documentation.
    Thanks and Regards,
    Shivakumar K.

    Hi Shivakumar,
                                                                                    Hi Shivakumar,
    in most of the cases this error - 06 436 - happens due to wrongly filled BAPI structures.
    Please check the entries in the x-structures in first line, for example:
    PRACCOUNT structure
    PREQ_ITEM                      00010
    SERIAL_NO                      01
    GL_ACCOUNT                     2222222     
    COSTCENTER                     SAP-DUMMY
    PRACCOUNTX structure
    PREQ_ITEM                      00010
    SERIAL_NO                      01    <<<<
    GL_ACCOUNT                     X
    COSTCENTER                     X
    SERVICEACCOUNT structure
    Line 1:
    DOC_ITEM                       00010
    OUTLINE                        0000000001
    SRV_LINE                       0000000010
    SERIAL_NO                      01
    SERIAL_NO_ITEM                 01
    SERVICEACCOUNTX structure
    Line 1:
    DOC_ITEM                       00010
    OUTLINE                        0000000001
    SRV_LINE                       0000000010
    SERIAL_NO                      01       <<<<
    SERIAL_NO_ITEM                 X     <<<
    Regards,
    Edit

Maybe you are looking for

  • Looking for suggestions to create a graphical user interface. Swing?

    Hi there, I am considering developing this as a side-project, therefore wish to know how much work will be involved (ie. if I have time to complete it). The situation. I have an online game that I play. It allows access to data using text files,that

  • IPod 3g works with usb, not through firewire

    Hello everybody. That's a long time the problem happened, but now it gives me a big trouble because I can't change music on my iPod 3G 10go. In fact, iPod was recognized through firewire by my iMac G3 until I installed Tiger. But charging is OK. Afte

  • Mac mini slow/page outs

    My late 2009 has been giving me fits for months and I can't seem to troubleshoot the problem. Things overall are slow but the main problem is Safari, Mail and waking the computer up from sleep. Here are the basic issues... 1. Safari hangs constantly

  • SAP PI 7.1 custom adapter deployment error

    Hi Experts, I have developed one custom SFTP adapter and i am trying to deploy it in PI server via JSPM. But in JSPM i am getting some error messages. what may be the cause of this error. ERROR log: sample_ra.sda<!LOGHEADER[START]/> <!HELP[Manual mod

  • Displaying a formula in a chart

    Hi how can I display a formula (such as y(x)=a3*x^3+a2*x^2) in a diagram? thanks for your help. Yves