Question with function module / Bapi

I am trying to test function module/ Bapi:
BAPI_BILLINGDOC_CREATEMULTIPLE in se37. I gave all the basic parameers required.
BILLING_DATA_IN-SALESORG
   BILLING_DATA_IN-DISTR_CHAN
   BILLING_DATA_IN-DIVISION
   BILLING_DATA_IN-DOC_TYPE
   BILLING_DATA_IN-ORDBILLTYP
   BILLING_DATA_IN-SOLD_TO
   BILLING_DATA_IN-ITEM_CATEG
   BILLING_DATA_IN-REQ_QTY
  BILLING_DATA_IN-SALES_UNIT
  BILLING_DATA_IN-CURRENCY
But when I execute, it says 'Company code not defined' in the error messages. I don't see any company code field in the above structure. What am I doing wrong?
Please give your input.
Thanks,
Krishen

Might be the company code is not defined for the sales organization..
Thanks,
Naren

Similar Messages

  • Function Module/BAPI for Posting with Residual Clearing

    Hello All,
    I want to know whether any Function Module/BAPI avaialble for posting with residual clearing (FB05). Can we do residual clearing using the FM "Posting_Interface_Clearing"?
    Please let me know how this can be handled.
    Thanks in advance.
    With Regards,
    Senthil.

    Hi senthil ,
    Look at these threads
    POSTING_INTERFACE_CLEARING
    bapi for Transfer posting with clearing
    BAPI_ACC_GL_POSTING_POST for FB05
    Question about POSTING_INTERFACE_CLEARING and POSTING_INTERFACE_START
    Regards,
    Gaurav

  • Need Help with Function Module or BAPI for Stock Requirements & PIRs

    Hello,
             I am working on making changes to a Report which should be displaying the PIR (Planned Independant Requirements) Quantities as well as Stock Requirements for SOs & STOs for below Type of Materials for the Given Date.
    1. Planning Materials
    2. Planned SKUs (that is Materials which do not have a Planning Material attached to them).
            In the Current Logic, we are using an FM REQUIREMENTS_ALLOCATION which fetches the Requirements only for the Planning Materials. It does not work for Planned SKUs.
    So, is there any Function Module / BAPI which serves this Purpose for both types of Materisls?
       Also, I've managed to Find out two Function Modules which I thought might be useful but still need confirmation regarding the same.
    MD_STOCK_REQUIREMENTS_LIST_API and
    BAPI_MATERIAL_MRP_LIST
            Please suggest any other FM if available for this Requirement.
    Thanks and Regards,
    Venkat Phani Prasad Konduri

    Basically, here is what my scenario is. I have two Types of Materials which have a Planning Material attached to it. and the Other Category is that it doesn't have a Planning Material attached to it. So, we call it a Planned SKU. That is a Material planned at the SKU level.
              Now, the Issue is , the Function Module REQUIREMENTS_ALLOCATION doesn't work for the Plannd SKUs but it only works for the Planning Material. Now, based on this Function Module, we are populating the Data for the Planning Materials of Material Type ZPLN. Similarly, is there any we can make this FM work for a Material which is planning at its own Level.
              Please help me in this Regard.
    Thanks and Regards,
    Venkat Phani Prasad Konduri

  • How to create Billing Plan in sales order using Function module /BAPI

    hi,
    How to create Billing Plan in sales order using Function module /BAPI
    i hv check few FM such
    BILLING_SCHEDULE_READ
    BILLING_SCHEDULE_GET_NUMBER
    BILLING_SCHEDULE_SAVE
    But unable to create billing plan for a sales order.....any other method to create???

    Hi,
    Use this link.
    Create sales order with billing plan via LSMW and BAPI BUS2032
    BAPI or Function to update Billing Plan in Sales Order Items
    Hope this will help you.
    Regards,
    Vijay

  • Function Module/BAPI For Material Document

    Dear All,
    I am looking for a function Module/BAPI to get details relevant for a Material Document.
    I can get those details using table MSEG & MKPF, but still looking for a Function Module.
    Kindly help.

    Hi
    Try with these BAPI's
    BAPI_GOODSMVT_GETITEMS
    BAPI_GOODSMVT_GETDETAIL
    Regards
    Brahmaji

  • Standard Function Modules, BAPIs, BADIs and User Exits  in OM

    How do I check what are the Standard Function Modules / BAPIs in OM or any HR sub modules like PA, Comp, TEM etc..

    use Tcode <b>BAPI</b> and navigate to relevant module.
    for FM go to se37 and search with HR* or RH*

  • VirtualProvider with Function Module

    Hi,Experts
    Can anyone tell me how to create a VirtualProvider with Function Module?
    I have read the How to guide"How to Implement a VirtualProvider with service",but I can't go throw the source code.
    Please give me a sample test code of yours!
    Thanks a lot!
    My Email:[email protected]

    Hi Jin
    This question does not belong to this forum, close it and post it in the appropriate one.
    Also, please remove your email address from the thread as it violates the forum guidelines.

  • Function Module/BAPI to check if material is available in the warehouse

    Hi all,
    I have a requirement where i get the input as material number and i need to check if the material is available in stock and return the quantity of stock available. Do we have a Function Module/BAPI that takes the input as material number and tells if the material is available in stock or not.
    The material can be a simple finished product, raw material or BOM. The function module should take the input as material number and should return if it is available in stock and the quantity that is available.
    I donu2019t know if this is called ATP. Do we have a standard function module available for that?
    Kindly help.
    Regards,
    Jessica Sam.

    Thanks Venu for immediate reply,
    I saw the BAPI and unable to figure out what paramters I should fill.
    Plant, Material and Quantity I know. But rest of them like
    Check Rule, STGE_LOC, batch, Doc_number, WBS_ELEM, STOCK_IND,
    DEC_FOR_ROUNDING, DEC_FOR_ROUNDING_X, READ_ATP_LOCK, READ_ATP_LOC_X & MATERIAL_EVG.
    In  the BAPI documentation I dint find how to fill these paramters. Can you help me with hat I need to fill in the input paramters.
    Regards,
    Jessica Sam

  • Function module/BAPI to release a Business partner in GTS

    Dear experts,
    I have a requirement where in I need to release business partners programmatically. I request you to let me know if any function modules/BAPIs or any other method is available (except BDC).
    I know the manual process of releasing them, and we were restricted to use BDC.
    Thanks in advance.
    Best Regards,
    Vishal

    Hello Vishal,
    Currently the release logic is inside subroutine instead of FM or BAPI.
    You could refer to:
    Report : /SAPSLL/LCON_BLOCKED_BPF01
    Form   :  deblock_partner_masters
    Best regards,
    Vincent

  • Third party system call function module/BAPI through RFC to update Z table

    Dear Friends,
    We have a third party system which directly inserts a Z table in SAP through its programming, which is an auditing issue.
    We want the third party system should call function module/BAPI through RFC so that the Z table gets updated.
    waiting for inputs..
    Thanks,
    Kumar

    if third party system is capable of making Remote Function call, then writing a Function module & making it remote enable is not difficult task in ABAP.
    You may have to prepare specifications first to decide if third party system is going to Read, insert, update, delete records from Zee table.

  • Function Module/BAPI for updating Document Status.

    Hi Experts,
    Is there any Function Module/BAPI available for updating the document status ?
    Thank You,
    Radhika.

    unresolved!

  • Function module/BAPI for executing VD51/VD52 transactions

    Hi
    Warm greetings to all,
    I require a function module/BAPI for executing VD51/VD52 transactions. Can anyone help on this
    Sreekanth

    Hi Sreekanth,
    Use this.
    There is an FM which is used by standard transaction
    'RV_CUSTOMER_MATERIAL_UPDATE' .
    Ex Code -
    CALL FUNCTION 'RV_CUSTOMER_MATERIAL_UPDATE'
    IN UPDATE TASK
    TABLES
    XKNMT_TAB = XKNMT
    YKNMT_TAB = YKNMT
    TCATALOG_TAB = LT_CATALOG.
    commit work.
    Regards,
    Vijay

  • Function Module / BAPI for Creating Material freight Group

    Hi All,
    Can anyone tell me the Function Module / Bapi for creating material freight group.
    Regards,
    Raj.

    Bapi for creating material freight group. :: You actually use mm01 or mm02 to change data for material flight.
    So you can use BAPI for mm02 and mm01
    For Ex:
    BAPI_MATERIAL_SAVEDATA
    Hope this helps

  • Function module / BAPI for FBRA IN 3.1 VERSION?

    Hello all,
    Could you please suggest Function module / BAPI for FBRA (Reverse and cancel) transaction in 3.1 version.
    Thanks,
    Subba

    Please check this FM perhaps it may help.
    CALL_FB08
    REVERSE_CLEARING
    RESET_CLEARED_ITEMS_BDC_WRITE.
    Regards
    Kiran Sure

  • Function Module/BAPI for posting of Parked Invoice/Documnet

    Dear all,
    Please provide me.
    Function Module/BAPI for posting of Parked Invoice/Documnet
    Regards
    Ricky

    Hi Ricky,
    What about MR_POST_PP_INVOICE?
    In my current project, though, we had to develop a function module for this.
    Regards,
    Eli

Maybe you are looking for