Which BAPI is creating BP in consumer role,  reference to customer, su01 us

Hello,
   which BAPI is creating
        BP in consumer role, 
         reference to customer,
        su01 user.
please tell me
regards
ram

Hi Jacob,
When i am going to save the BP the details i filled in like name of the BP and all information goes blank. Asd i have mentioned.
So in error it is saying "An exception has occured during progranm processing, Make an entry in the name field".
In error dignosis i got below information:-
Exception Details--> CX_SY_REF_IS_INITIAL - Derefrencing of the Null reference.
Method: ZL_BP_HEAD_BPHEADOVERVIEW_IMPL=>EH_ONSAVE
Source Text Row: 38.
It is all because the information is getting removed which we enter for our BP. And i am not getting why it is not getting saved in the system. I have debugged the code for the event handler jsut after which all the valeus are getting removed but dint get anything.
Regards.

Similar Messages

  • Which BAPI can Create handling Unit for VL02N.

    Dear All,
         Which BAPI can Create handling Unit for VL02N.
    The Business is: VL02N, click head toolbar PACK, then call up handling Unit.
    Thanks

    Hi sun!
    I'm facing the same requirement since three days and i'm not able to get it workin.
    Did you resolve the problem and if yes which function modules did you use?
    Thanks in advance!
    Florian
    Edited by: Florian Visintin on Sep 17, 2009 10:21 AM
    Edited by: Florian Visintin on Sep 17, 2009 10:22 AM

  • FM/BAPI to create Transfer Order(TO) with reference to TR or Material Doc.

    Hi,
    I am in need of Function module or BAPI to Create Transfer Order(TO) with reference to Transfer Requirement(TR) or Material Document.

    Hi,
    Please try any of the below,
    1.Look at function group L03B (Transfer order processing)
    2.Use L_TO_CREATE_TR
    3.BAPI_GOODSMVT_CREATE set:
    GOODSMVT_ITEM-STGE_TYPE_PC = destination storage type or GOODSMVT_ITEM-STGE_TYPE_ST = destination storage type
    4.Look at fm L_TB_VERAENDERN. This isn't RFC, but you might copy fm into ZL_TB_VERAENDERN and set RFC on.
    Hope this helps.
    Thanks,
    Harini

  • What is the BAPI for creating an inbound delivery without reference.

    Hi Experts,
    What is the BAPI for creating an inbound delivery without reference.
    Points will be rewarded

    BAPI_DELIVERYPROCESSING_EXEC
    cheers
    Aveek

  • Does anyone know which bapi  to create document(ff67,fv60 and f-36)

    I need to post several kinds of documents in SAP using a BAPI.
    Details as follows:
    1. How to post a parked document in SAP using a BAPI(FV60).
       I don't know which bapi should I use.
    2. How to post a bank statement document in SAP using a BAPI (FF67).
       Someone suggests me using bapi_bank_statement_exec,
    but I couldn't find this bapi in system,maybe for sap version reason.
    3. How to post a boe document in SAP using a BAPI (F-36),
       I have attempted to use "BAPI_ACC_DOCUMENT_POST" ,but I couldn't find which parameter can be used for Pstky(namely Posting key, you can find it in First line item on the first screen of F-36).
    Any help would be greatly appreciated.

    hi,
    welcome to SDN.
    check these bapi.
    1   BAPI_ACCSTMT_CREATEFROMPREVDAY       Create Bank Statement/Day-End Statement
    2   BAPI_ACCSTMT_CREATEFROMSAMEDAY       Create Bank Statement/Today's Data
    3   BAPI_BANK_STATEMENT_EXEC             Bank Statement: Newly Create Bank Statement
    4   BAPI_BANK_STATEMENT_GET              Bank Statement: Call Up Created Bank Statement
    5   BAPI_INCOMINGINVOICE_PARK            Invoice Verification: Park Invoice
    <REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>
    Edited by: Alvaro Tejada Galindo on Jul 22, 2009 4:02 PM

  • Which bapi for create activity type

    i use ecc 4.6
    i just find
    BAPI_ACTIVITYTYPEGRP_CREATE
    for create activity group
    but i do not find the bapi for create the activiy type
    which bapi is for create activiy type
    if the sap does not supply this bapi
    wich method to create the activity type (i know shdb can do it)

    BAPI_ACTTYPE_CREATEMULTIPLE

  • BAPI to create a billing document with reference to delivery or sales order

    Hi,
    Does anyone know any BAPI or function module that allows the creation of a billing document with reference to a sales order or to a delivery.
    Maybe the BAPI_BILLINGDOC_CREATEFROMDATA may be used to create a billing document with reference to a sales document, but i'm looking for a solution where I only need to indicate the number of the reference sales order or the reference delivery and maybe some few data more without the need of transfer all the items and conditions information.
    Thanks.
    Kind regards,
    Paulo Sousa

    Hello Paulo,
    To create a billing document based on a delivery use BAPI_BILLINGDOC_CREATEMULTIPLE. In table BILLINGDATAIN insert one line with the following data:
    REF_DOC = Delivery number
    REF_DOC_CA = 'J'
    If it runs fine, table SUCCESS will bring back useful data, like BILL_DOC (Billing document number).
    Regards,
    Joã

  • BAPI to create,get Profiles and roles

    Hi,
    I am using the SAP RFC SDK to do the provisioning of entities in the SAP environment.
    My SAP system is 6.20 .
    I wanted to know if there are BAPI's which exist for the following
    a)Profile creation
    b)Profile Fetching
    c)Role creation
    d)Role Fetching
    I could not find the same in the SAP IDM document provided for IAM vendors
    Best Regards
    Manoj

    Hi Manoj,
    Everything you need to know about this, and more, can be found in the following PDF from SAP: <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/668e6629-0701-0010-7ca0-994cb7dec5a3">SAP Identity Management APIs</a>.
    In summary:
    To find a user's roles and profiles, use <b>BAPI_USER_GET_DETAIL</b>.
    To assign & delete a user's roles, use <b>BAPI_USER_ACTGROUPS_ASSIGN</b> and <b>BAPI_USER_ACTGROUPS_DELETE</b>.
    To assign and delete a user's profiles, use <b>BAPI_USER_PROFILES_ASSIGN</b> and <b>BAPI_USER_PROFILES_DELETE</b>.
    Hope this helps,
    Darren
    <a href="http://www.fortybeans.com/">My blog</a>

  • BAPI to Create Outbound Delivery Without Order Reference

    Hi everyone
    I need to create <b>outbound delivery without order reference</b> ( like i create manual in VL01NO) . Can anyone help me to find this bapi or function?
    Thanks & regards
       David

    Hi,
    Please check this BAPI.
    BAPI_DELIVERYFREE_PROXY_CREATE
    BAPI_DELIVERYPROCESSING_EXEC
    Regards,
    Ferry Lianto

  • Using BAPI to create users across all Clients and R/3 Systems

    Hi everyone,
    I'm currently writing a program where I'm using a BAPI to create multiple new users via central user admin (SU01) and assigning Roles to these users.
    My objective is to create these new users in all clients of all R/3 systems using RFC. At the moment, in SM59, our DEV environment is set up as "DEV", QA as "TST" and PRD as "PRD". When I use syntax:
    CALL FUNCTION 'BAPI_USER_CREATE1' DESTINATION 'TST' the system presents a logon screen to login to TST system. Can this logon be made automatic i.e. without this screen prompt?
    Also, I can't create the users in all clients of 'TST'. Our test system has 5 clients...how do I create the users in all clients of TST automatically?
    Your help will be greatly appreciated.
    Thanks.
    Sougata.

    Try to see the SAP HELP:
    RFC logon to target system (remote logon)
    RFC logon within an R/3 system can be successfully undertaken using the same user ID even if the logon is to take place in a different client.
    In principle, all necessary logon data for a particular RFC destination (language, user, client, and password) are used when an RFC logs on to the target system.
    Typically the password field (for a particular user) must be maintained when an RFC communicates with other clients or user IDs.
    If one of the fields language, client or user is not maintained for the designated RFC destination, default values are taken from the system environment (system table).
    Tips:
    With RFC communication within a single R/3 system with the same client and user the logon fields do not have to be maintained. Password entry is also unnecessary in this special case.
    If an RFC logon in online mode is unsuccessful, an RFC logon window is displayed (not during background processing) where you can logon to the target system online at runtime.
    The default values for the RFC logon screen fields are as follows:
    Client
    The standard value of the target system application server is used. This value is read from the target server's "login/system_client" profile parameter.
    User
    The system inserts the user ID of the current user in this field.
    Language
    Information from the RFC destination is used to fill the language field. If the language field has not been maintained in the destination, the current language of the calling system is inserted.
    The RFC logon window does not appear if the initial function module call of the RFC destination originates from the system-specific function group 'SRFC'. The function modules RFC_PING and RFC_SYSTEM_INFO belong to this group among others.
    If you would like to have an RFC logon window displayed regardless, you must end RFC communication to that particular RFC destination after the call using the function module 'RFC_CONNECTION_CLOSE'.
    Be aware that no logon screen is usually offered when using trusted/trusting systems.
    Documentation to authorization checks in the RFC environment can be found in RFC authorization concept.
    Max

  • BAPI for create meterial component

    Hi experts
       Which bapi can create meterial componet for an Activity, the same  as use TCODE cj20n create a network->create activity->create meterial componet
    BR
    Chris

    Hi,
    *& Report ZKAR_MATMAS_BAPI
    *& This program demonstrates how easy it is to create Material master
    *& data using BAPI_MATERIAL_SAVEDATA
    *& The program also generates a report post-execution displaying errors
    *& as well as successful uploads
    REPORT ZKAR_MATMAS_BAPI.
    * TABLES
    * FLAGS *
    DATA: F_STOP. " Flag used to stop processing
    * DATA DECLARATIONS *
    DATA : V_EMPTY TYPE I, " No. of empty records
    V_TOTAL TYPE I. " Total no. of records.
    * STRUCTURES & INTERNAL TABLES
    *BAPI structures
    DATA: BAPI_HEAD LIKE BAPIMATHEAD, " Header Segment with Control Information
    BAPI_MAKT LIKE BAPI_MAKT, " Material Description
    BAPI_MARA1 LIKE BAPI_MARA, " Client Data
    BAPI_MARAX LIKE BAPI_MARAX, " Checkbox Structure for BAPI_MARA
    BAPI_MARC1 LIKE BAPI_MARC, " Plant View
    BAPI_MARCX LIKE BAPI_MARCX, " Checkbox Structure for BAPI_MARC
    BAPI_MBEW1 LIKE BAPI_MBEW, " Accounting View
    BAPI_MBEWX LIKE BAPI_MBEWX, " Checkbox Structure for BAPI_MBEW
    BAPI_RETURN LIKE BAPIRET2. " Return Parameter
    *--- Internal table to hold excel file data
    DATA: IT_INTERN TYPE ALSMEX_TABLINE OCCURS 0 WITH HEADER LINE.
    *--- Internal table to hold Matetrial descriptions
    DATA: BEGIN OF IT_MAKT OCCURS 100.
            INCLUDE STRUCTURE BAPI_MAKT.
    DATA: END OF IT_MAKT.
    *--- Internal to hold the records in the text file
    DATA : BEGIN OF IT_DATA OCCURS 100,
                WERKS(4), " Plant
                MTART(4), " Material type
                MATNR(18), " Material number
                MATKL(9) , " Material group
                MBRSH(1), " Industry sector
                MEINS(3), " Base unit of measure
                GEWEI(3), " Weight Unit
                SPART(2), " Division
                EKGRP(3), " Purchasing group
                VPRSV(1), " Price control indicator
                STPRS(12), " Standard price
                PEINH(3), " Price unit
                SPRAS(2), " Language key
                MAKTX(40), " Material description
                END OF IT_DATA.
    * SELECTION SCREEN. *
    SELECTION-SCREEN BEGIN OF BLOCK SCR1 WITH FRAME TITLE TEXT-111.
    PARAMETER : P_FILE TYPE RLGRAP-FILENAME OBLIGATORY DEFAULT " Input File
    'C:\Material_master.XLS'.
    PARAMETER : P_MAX(4) OBLIGATORY DEFAULT '100'. " no.of recs in a session
    PARAMETERS: P_HEADER TYPE I DEFAULT 0. " Header Lines
    PARAMETERS: P_BEGCOL TYPE I DEFAULT 1 NO-DISPLAY,
    P_BEGROW TYPE I DEFAULT 1 NO-DISPLAY,
    P_ENDCOL TYPE I DEFAULT 100 NO-DISPLAY,
    P_ENDROW TYPE I DEFAULT 32000 NO-DISPLAY.
    SELECTION-SCREEN END OF BLOCK SCR1.
    * AT SELECTION-SCREEN *
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
    *--- Validating file
      PERFORM VALIDATE_FILE USING P_FILE.
    * START-OF-SELECTION
    START-OF-SELECTION.
    *--- Perform to convert the Excel data into an internal table
      PERFORM CONVERT_XLS_ITAB.
      IF NOT IT_DATA[] IS INITIAL.
    *--- Perform to delete Header lines
        PERFORM DELETE_HEADER_EMPTY_RECS.
      ENDIF.
    * END OF SELECTION. *
    END-OF-SELECTION.
    *--- Perform to upload Material Master data
      PERFORM UPLOAD_MATMAS.
    * Form : validate_input_file
    * Description : To provide F4 help for file if read from PC
    FORM VALIDATE_FILE USING F_FILE TYPE RLGRAP-FILENAME.
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
        CHANGING
          FILE_NAME     = F_FILE
        EXCEPTIONS
          MASK_TOO_LONG = 1
          OTHERS        = 2.
      IF SY-SUBRC <> 0.
        MESSAGE S010(ZLKPL_MSGCLASS). " 'Error in getting filename'.
      ENDIF.
    ENDFORM. " validate_input_file
    *& Form CONVER_XLS_ITAB
    * text
    FORM CONVERT_XLS_ITAB.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          FILENAME    = P_FILE
          I_BEGIN_COL = P_BEGCOL
          I_BEGIN_ROW = P_BEGROW
          I_END_COL   = P_ENDCOL
          I_END_ROW   = P_ENDROW
        TABLES
          INTERN      = IT_INTERN.
      IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    *--- Perform to move the data into an internal data
      PERFORM MOVE_DATA.
    ENDFORM. " CONVERT_XLS_ITAB
    *& Form MOVE_DATA
    * text
    FORM MOVE_DATA.
      DATA : LV_INDEX TYPE I.
      FIELD-SYMBOLS <FS>.
    *--- Sorting the internal table
      SORT IT_INTERN BY ROW COL.
      CLEAR IT_INTERN.
      LOOP AT IT_INTERN.
        MOVE IT_INTERN-COL TO LV_INDEX.
    *--- Assigning the each record to an internal table row
        ASSIGN COMPONENT LV_INDEX OF STRUCTURE IT_DATA TO <FS>.
    *--- Asigning the field value to a field symbol
        MOVE IT_INTERN-VALUE TO <FS>.
        AT END OF ROW.
          APPEND IT_DATA.
          CLEAR IT_DATA.
        ENDAT.
      ENDLOOP.
    ENDFORM. " MOVE_DATA
    *& Form DELETE_HEADER_EMPTY_RECS
    * To delete the Header and empty records
    FORM DELETE_HEADER_EMPTY_RECS.
      DATA: LV_TABIX LIKE SY-TABIX.
      IF NOT P_HEADER IS INITIAL.
        LOOP AT IT_DATA.
          IF P_HEADER > 0 AND NOT IT_DATA IS INITIAL.
            DELETE IT_DATA FROM 1 TO P_HEADER.
    * P_HEADER = 0.
            EXIT.
          ENDIF.
        ENDLOOP.
      ENDIF.
      CLEAR IT_DATA.
    *--- To delete the empty lines from internal table
      LOOP AT IT_DATA.
        LV_TABIX = SY-TABIX.
        IF IT_DATA IS INITIAL.
          V_EMPTY = V_EMPTY + 1.
          DELETE IT_DATA INDEX LV_TABIX..
        ENDIF.
      ENDLOOP.
      CLEAR IT_DATA.
    *--- Total no of recs in file
      DESCRIBE TABLE IT_DATA LINES V_TOTAL.
      IF V_TOTAL = 0.
        MESSAGE I013(ZLKPL_MSGCLASS). " No records in the file
        F_STOP = 'X'.
        STOP.
      ENDIF.
    ENDFORM. " DELETE_HEADER_EMPTY_RECS
    *& Form UPLOAD_MATMAS
    * to upload Material Master data
    FORM UPLOAD_MATMAS .
      LOOP AT IT_DATA.
    * Header
        UNPACK IT_DATA-MATNR TO IT_DATA-MATNR.
        BAPI_HEAD-MATERIAL = IT_DATA-MATNR.
        BAPI_HEAD-IND_SECTOR = IT_DATA-MBRSH.
        BAPI_HEAD-MATL_TYPE = IT_DATA-MTART.
        BAPI_HEAD-BASIC_VIEW = 'X'.
        BAPI_HEAD-PURCHASE_VIEW = 'X'.
        BAPI_HEAD-ACCOUNT_VIEW = 'X'.
    * Material Description
        REFRESH IT_MAKT.
        IT_MAKT-LANGU = IT_DATA-SPRAS.
        IT_MAKT-MATL_DESC = IT_DATA-MAKTX.
        APPEND IT_MAKT.
    * Client Data - Basic
        BAPI_MARA1-MATL_GROUP = IT_DATA-MATKL.
        BAPI_MARA1-BASE_UOM = IT_DATA-MEINS.
        BAPI_MARA1-UNIT_OF_WT = IT_DATA-GEWEI.
        BAPI_MARA1-DIVISION = IT_DATA-SPART.
        BAPI_MARAX-MATL_GROUP = 'X'.
        BAPI_MARAX-BASE_UOM = 'X'.
        BAPI_MARAX-UNIT_OF_WT = 'X'.
        BAPI_MARAX-DIVISION = 'X'.
    * Plant - Purchasing
        BAPI_MARC1-PLANT = IT_DATA-WERKS.
        BAPI_MARC1-PUR_GROUP = IT_DATA-EKGRP.
        BAPI_MARCX-PLANT = IT_DATA-WERKS.
        BAPI_MARCX-PUR_GROUP = 'X'.
    * Accounting
        BAPI_MBEW1-VAL_AREA = IT_DATA-WERKS.
        BAPI_MBEW1-PRICE_CTRL = IT_DATA-VPRSV.
        BAPI_MBEW1-STD_PRICE = IT_DATA-STPRS.
        BAPI_MBEW1-PRICE_UNIT = IT_DATA-PEINH.
        BAPI_MBEWX-VAL_AREA = IT_DATA-WERKS.
        BAPI_MBEWX-PRICE_CTRL = 'X'.
        BAPI_MBEWX-STD_PRICE = 'X'.
        BAPI_MBEWX-PRICE_UNIT = 'X'.
    *--- BAPI to create material
        CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
        EXPORTING
        HEADDATA = BAPI_HEAD
        CLIENTDATA = BAPI_MARA1
        CLIENTDATAX = BAPI_MARAX
        PLANTDATA = BAPI_MARC1
        PLANTDATAX = BAPI_MARCX
    * FORECASTPARAMETERS =
    * FORECASTPARAMETERSX =
    * PLANNINGDATA =
    * PLANNINGDATAX =
    * STORAGELOCATIONDATA =
    * STORAGELOCATIONDATAX =
    * VALUATIONDATA = BAPI_MBEW1
    * VALUATIONDATAX = BAPI_MBEWX
    * WAREHOUSENUMBERDATA =
    * WAREHOUSENUMBERDATAX =
    * SALESDATA = BAPI_MVKE1
    * SALESDATAX = BAPI_MVKEX
    * STORAGETYPEDATA =
    * STORAGETYPEDATAX =
        IMPORTING
        RETURN = BAPI_RETURN
        TABLES
        MATERIALDESCRIPTION = IT_MAKT
    * UNITSOFMEASURE =
    * UNITSOFMEASUREX =
    * INTERNATIONALARTNOS =
    * MATERIALLONGTEXT =
    * TAXCLASSIFICATIONS =
    * RETURNMESSAGES =
    * PRTDATA =
    * PRTDATAX =
    * EXTENSIONIN =
    * EXTENSIONINX =
        IF BAPI_RETURN-TYPE = 'E'.
          WRITE:/ 'Error:' ,BAPI_RETURN-MESSAGE ,'for material:' ,IT_DATA-MATNR.
        ELSEIF BAPI_RETURN-TYPE = 'S'.
          WRITE: 'Successfully created material' ,IT_DATA-MATNR.
        ENDIF.
      ENDLOOP.
    ENDFORM. " UPLOAD_MATMAS
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Apr 11, 2008 5:49 PM

  • The BAPI of creating WBS

    Dear experts,
         Can you tell which BAPI to create WBS(Cost Plan) ?
         Can you tell which BAPI to modify WBS(Cost Plan) ?
         Which T-code to create WBS  ?
    Best Regards,
    Merry

    hello,
    check this FM BAPI_BUS2054_CREATE_MULTI
    WBS elements can be created for a project with BAPI "BAPI_BUS2054_CREATE_MULTI". To do this, parameter "I_PROJECT_DEFINITION" must contain the project definition for which the WBS elements are to be created. The individual WBS elements with all required values must be entered in table "IT_WBS_ELEMENT_TABLE". The WBS elements are created next to each other, in the same sequence as in table "IT_WBS_ELEMENT_TABLE". A WBS element under which the new WBS elements are to be created can be specified in parameter "I_WBS_UP". A WBS element that is to be located directly to the left of the new WBS elements can be specified with parameter "I_WBS_LEFT". If "I_WBS_LEFT" is not specified, the new WBS elements are added on the left-hand side. If I_WBS_UP is also not specified, the new WBS elements are added on the left and on the first level.
    Note: Check the below link it will be useful,
    http://abap.wikiprog.com/wiki/BAPI_BUS2054_CREATE_MULTI
    for modify please check the documentation of FMs
    AIPO_WBSELEM_MODIFY_CHECK
    AIPO_WBSELEM_MODIFY_FIELDS..
    for tcode check this link CJ20N
    to know abt WBS element read the site
    http://www.sap-img dot com/project/what-is-wbs-element.htm
    Thank u,
    santhosh

  • BAPI for Creating a PM order(iw34) with reference to a Notification

    Hi All,
    Could anyone help to find the BAPI for creating a PM order with reference to a notification Number.
    I will explain my requirement :
    I want to create a notification from an external Application where i got the BAPI BAPI_ALM_NOTIF_CREATE and keeping this created notification number as Referece or for this notification number  i need a create a PM order.Usually this process in done transaction IW34 in R/3.
    But with the BAPI BAPI_ALM_ORDER_MAINTAIN i can create a PM order but this BAPI doesn't have a input parameter "Notification number ".So i can't use this BAPI.
    Could any suggest for a BAPI where i can create a PM order with reference to a Notification Number.
    Regards,
    Sid

    Hi,
    I have tried with the FM CO_IH_ORDER_GENER_2 but when i executes it gives a error message
    "<i>Service/maintenance order type PM02 not completely maintained in plant
    Message no. IW216
    Diagnosis
    For the selected order type and plant, no check control is maintained in Plant Maintenance/Service in 'Availability Check for Materials, PRTs and Capacities'.
    Procedure
    A check control must be maintained for this combination of order type and plant</i>"".
    And even have a doubt what to enter in this input parameter "GEWRK_OBJTYP"  .
    Kindly help me to solve this issue.
    Regards,
    Sid

  • Need FM which create authorization for a Role

    Hi,
    i neeed to create authorization for the roles. can anybody tell me , is there any FM to create authorization for a Role.
    it is done through PFCG transaction.
    i need a FM which creates authorization for a Role.
    Thanks in advance

    Hi Sami
    Try this link.
    Re: Programatically create Security Profiles via BAPI/FM in R/3?
    Regards
    Neha

  • I need to create automatic invoice(vf01) on click of pgi.so which Bapi?

    Hi all,
               I need to create automatic invoice(vf01) on click of pgi.
    so which bapi shell i use and how shell i pass   outbound deliver((likp-vbeln) to document (KOMFK-vbeln) through that bapi.
    Is BAPI_BILLINGDOC_CREATE is correct bapi to do so.if it is then what i have to pass in parametres.
    Please suggest me.
    Regards,
    Himanshu

    Hi,
      Thanks buddy for your kind support. Now i have below code ..plese check.
    tables:  nast.
      data : bb like BAPIVBRK occurs 0 with header line ,
             re like BAPIRET1 occurs 0 with header line ,
             ss like BAPIVBRKSUCCESS occurs 0 with header line .
            bb-REF_DOC = nast-OBJKY.
           bb-REF_DOC_CA = 'J'. " commented"
              append bb.
    CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'
    EXPORTING
      CREATORDATAIN         =
      TESTRUN               =
      POSTING               =
      TABLES
        BILLINGDATAIN         = bb
      CONDITIONDATAIN       =
      CCARDDATAIN           =
      TEXTDATAIN            =
      ERRORS                =
        RETURN                = re
        SUCCESS               = ss .
    I have to chek whether it works or not.
    Regards,

Maybe you are looking for

  • Dates on the inbound delivery header

    Hi Gurus, Can anybody please explain me what is the use of dates tab on the inbound delivery header. What is it used for? How can we activate/populate this. We are looking for the ASN functionality to be turned on. Any help is greatly appreciated Tha

  • I want to use elements 11 with an external hard drive and need some help.

    I have a macbook pro and was fine using iphoto 09 as my image manager and editor. I soon filled my hard drive and purchased a 1tb external hard drive. I moved my iphoto library to the external drive while keeping iphoto on the macbook. I recently ins

  • Bussiness Delegate vs Session Facade.

    Hi, Please any one tell me what are the differences between Bussiness Delegate and Session Facade. I read some documentation in online but not clear in above two design patterns. Any help I will appricate. Thanks, CDulla.

  • Pictures rotate or disappears by from the book I´m creating!

    I have made a few photo books in iPhoto before, no problems. When I´m now creating a new book some photos in the book rotate all by their selves and some photos just disappear! I correct them and after a few minutes other photos disappears! Please he

  • Upgrade from 4.6C to ECC 6.0 - issue on search help

    Hi, After SPAU changes on search help like DEBI,KOSTN and DEBIE while on activate its shows the warning message as included search help using same hot key V. Can any one help me on how to solve this warning message. Thanks,    Manikandan.