How to create PR using T.code CJ20N

Dear all,
I am a MM guy, i want to test the scenario in my IDEAS system
how to create a PR with CJ20N t.code,based on that i want to create PO to vendor please provide me detials steps .
Please consider me as a Enduser
if any documentation please send to svgk111@gmail
points will be rewarded
Regards
venu gopal
Edited by: venu kk on Jun 26, 2008 7:35 AM

Hi Venu,
Reply given by Rahul Tyagi is correct. Another way to get PR thru CJ20N is :
Open CJ20N , Open your Project by clicking onto the Open Icon --> Click on the network --> Put the description of the PR in the description field > Put WBS element in the WBS element field by taking the columns to the right hand side.> Select the particular line item --> Click on to the Component Overview icon at the bottom --> Put your MM into the Material Field --> Put the requirement qty. -->Now select the item category as L for Stock Item and N for Non Stock
item , then one POP UP window will appear --> Select " Third Party Order" --> Then put your customer number and press enter --> Save the document.
Now , again open CJ20N and select the particular Activity ---> select the material component attached to that activity and on the right hand screen  you can see the PR number.
Hope this will also help you
Regards,
Dhruv Kumar Malhotra

Similar Messages

  • How to create and use mutable array of UInt8

    Hello!
    If I get it right, UInt8 *buffer, buffer - is a pointer to a start of array?
    Then how to create and use mutable array of UInt8 pointers?
    The main target is a creation of the module that will store some byte array requests and will send all of them at the propriate moment.

    I try
    - (void) scheduleRequest:(UInt8 *)request {
    if (!scheduledRequests) scheduledRequests = [[NSMutableArray array] retain];
    [scheduledRequests addObject:request];
    But get warning:"passing argument 1 of 'addObject:' from incompatible pointer type"

  • HOW TO CREATE  and  USE EVENTS IN WORKFLOWS .

    HOW TO CREATE  and  USE EVENTS IN WORKFLOWS with the help of classes.
    What i am doing is..
    open se24
    event tab->event name->parameters
    method tab->method name->event handler->copy parameters
    interface tab->if_workflow->enter
    tell me what else to do step by step
    Another important thing is that HOW to use these class events to trigger the workflows.
    REPLY ASAP
    THXS IN ADVANCE

    Hi,
    Pl. see this blog...
    Raising ABAP OO events for workflow
    Regards,
    JOy.

  • How to Create  and use of Coherence servers in weblogic serevr 11g (10.3.6)?

    how to Create  and use of Coherence servers in weblogic serevr 11g (10.3.6)?

    See the below discussion
    How to create and use Webservice controls using WSDL in weblogic portal10.3
    Thanks,
    Venkat Sarvabatla

  • How to create and use dynamic queue in JMS

    Plz tell me how to create and use a dynamic queue in jms and can reciever file lookup it as it lookup any server configurred queue(written in the server).

    Hi,
    We can use Azure File services to do this, for more information, please have a look at this article:
    http://blogs.msdn.com/b/windowsazurestorage/archive/2014/05/12/introducing-microsoft-azure-file-service.aspx. The Azure File service exposes file shares using the standard SMB 2.1 protocol. Applications running in Azure can now easily share files between
    VMs using standard and familiar file system APIs like ReadFile and WriteFile.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Requesting all to help me how to create lsmw using idoc method

    hi
    thanx for ur answer
    requesting every body in the forum to help me how to create lsmw using idoc method.
    regards,
    balaji

    Hi Balaji,
    LSMW using IDOC is similar to using flat file method. Here you are getting data from IDOC container and mapping data with Idoc segments insted of flatfile column.
    Hope this is what you are looking for. If helpful then don’t forget to reward me for that
    Darshan

  • How to create database using shell script

    hai
    how to create database using shell script

    The documentation details the steps to create a database manually. Another option is to use DBCA to create the scripts. DBCA will give you a complete set of scripts that will create a database.
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14231/create.htm#sthref220

  • How to create a sub head(code) in a catalog- for service notification

    Hi everyone,
    How to create a sub head(code) in a catalog- for service notification?
    Please guide with your valuable comments.
    Please guide its very urgent.
    Thanks and Regards
    Edited by: MPVash Vash on Oct 24, 2008 8:14 AM
    Edited by: MPVash Vash on Oct 30, 2008 7:38 AM

    Hi,
    Go to T-code QS41, give the catalog and code group and enter.
    U can click on the code after selecting the code group and create new  codes.
    In SPRO u should see which type of catalog is assigned to the notification type. This u can see in the overview of the notification type by selecting the notification type in SPRO.
    Regards
    Haricharan

  • How to create indexes using CREATE TABLE statement

    Hi,
    Can anyone please tell me how to create indexes using CREATE TABLE staement? This point is part SQL Expert exam (1Z0-047) and please guide me to use which books for this particular exam.
    Thanks in advance.

    Can anyone please tell me how to create indexes using CREATE TABLE staement?e.g. creating a primary key or a unique constraint will generate indexes along with the create table syntax:
    SQL> create table t (a integer primary key, b integer unique)
    Table created.
    SQL> select   index_name, index_type, uniqueness
      from   user_indexes
    where   table_name = 'T'
    INDEX_NAME                     INDEX_TYPE                  UNIQUENES
    SYS_C0016575                   NORMAL                      UNIQUE  
    SYS_C0016574                   NORMAL                      UNIQUE  
    2 rows selected.

  • Urgent!!help me! how to create UIInput component in code?

    hello all
    how to create UIInput component in code? my code as followed:
                        UIComponent nComponent = application.getComponent("Input");
                        if (!(nComponent instanceof UIOutput)) {
    throw new ClassCastException("error message...");
                        nComponent.setParent(parentComponent);
                        nComponent.setRendererType("Text");
                        nComponent.setComponentId(getClientId(context,nComponent));
                        UIOutput newComponent = (UIOutput)nComponent;
    newComponent.setValueRef("mymodel.propname");
    and input can get value from model,but can not update value to model?why?how can i do?

    Trying to understand the code snippet you posted. Could you please explain why you are casting your input component to output, then setting the valueRef on it ??
    -Jayashri

  • How to create crossword using Adobe captivate

    how to create crossword using Adobe captivate

    OK.  Again I am not needing clarification here.  Did you INSERT the SWF as an animation into the Captivate project? Or, did you keep the SWF as an external file?  If the SWF is external to the main Cp SWF then perhaps it's not working when you publish because the content cannot find the SWF.  If you have made sure that the SWF is definitely in the publish location, check whether or not you have that location set as a trusted location in your Flash Global Security settings.

  • How to create report using Procedure.

    Hi All,
    I want to create report in apex.But i do not have sql code.I have one procedure.Is it possible to create report using this procedure in apex.
    CREATE OR REPLACE PROCEDURE headcsv_prc2
    AS
       CURSOR cr_header
       IS
          SELECT ood.organization_code, fm.formula_no AS "FORMULA_NAME",
                   fm.formula_vers AS "FORMULA_VERSION",
                   fm.formula_desc1 AS "FORMULA_DESC",
                   DECODE (fm.formula_status,
                           100, 'New',
                           400, 'Approve for Laboratory Use',
                           700, 'Approve for General',
                           800, 'On Hold',
                           900, 'Frozen',
                           1000, 'Obsolete/Archived'
                          ) AS "FORMULA_STATUS",
                   DECODE (fd.line_type, '1', msib.segment1) product,
                   DECODE (fd.line_type, '-1', msib.segment1) ingrediant,
                   DECODE (fd.line_type, '2', msib.segment1) AS "BY_PRODUCT",
                   DECODE (by_product_type,
                           'W', 'Waste',
                           'R', 'Rework',
                           'Y', 'Yield',
                           'S', 'Sample',
                           NULL
                          ) AS "BY_PRODUCT_TYPE"
              FROM org_organization_definitions ood,
                   fm_form_mst fm,
                   fm_matl_dtl fd,
                   mtl_system_items_b msib
             WHERE ood.organization_id = fm.owner_organization_id
               AND fm.owner_organization_id = msib.organization_id
               AND msib.organization_id = fd.organization_id
               AND fd.organization_id = ood.organization_id
               AND fm.formula_id = fd.formula_id
               AND msib.inventory_item_id = fd.inventory_item_id
               -- and fm.FORMULA_NO like'%TEA%'
               AND fd.line_type IN ('1', '2', '-1')
          GROUP BY ood.organization_code,
                   fm.formula_no,
                   fm.formula_vers,
                   fm.formula_desc1,
                   fm.formula_status,
                   fd.line_type,
                   msib.segment1,
                   by_product_type
          ORDER BY fm.formula_no, fm.formula_vers;
    BEGIN
       DBMS_OUTPUT.put_line (   INITCAP ('ORGANIZATION CODE')
                             || ','
                             || INITCAP ('FORMULA NAME')
                             || ','
                             || INITCAP ('FORMULA VERSION')
                             || ','
                             || INITCAP ('FORMULA DESC')
                             || ','
                             || INITCAP ('FORMULA STATUS')
                             || ','
                             || INITCAP ('PRODUCT')
                             || ','
                             || INITCAP ('INGREDIANT')
                             || ','
                             || INITCAP ('BY PRODUCT')
                             || ','
                             || INITCAP ('BY PRODUCT TYPE')
       FOR ch IN cr_header
       LOOP
          DBMS_OUTPUT.put_line (   ch.organization_code
                                || ','
                                || ch.formula_name
                                || ','
                                || ch.formula_version
                                || ','
                                || '"'
                                || ch.formula_desc
                                || '"'
                                || ','
                                || ch.formula_status
                                || ','
                                || ch.product
                                || ','
                                || ch.ingrediant
                                || ','
                                || ch.by_product
                                || ','
                                || ch.by_product_type
       END LOOP;
    EXCEPTION
       WHEN OTHERS
       THEN
          DBMS_OUTPUT.put_line ('Error No: ' || SQLCODE || 'Error Msg: '
                                || SQLERRM
    END;
    EXEC HeadCSV_Prc2
    Thanks,
    Raghu

    RaghuVarma wrote:
    I created one report using sql code.(Ex: select * from emp).
    But my higher authorities want that for security purpose They will change the code into java.
    What "higher authorities"? What "security purpose"?
    In this process they changed my code as a procedure.Finally they give that java code.they tell to me please fix in apex.
    Do these "higher authorities" know anything about APEX? What does the Java code actually do? Have you asked them how their approach is to be integrated into APEX?
    There is no reason why a properly written Java stored program cannot be used in APEX, provided that whatever it is doing makes sense in an APEX/web context, and isn't some nonsense like using DBMS_OUTPUT to generate a CSV.
    I tried so many ways.But it is not fixed.Different Different errors will occurs.
    Tried what? Demonstrate what you have tried, preferably using examples on apex.oracle.com.
    How to solve this.
    How to solve what? No clearly defined problem or requirement has been identified.
    Describe the the problem/requirement (not your attempted solutions) in detail.
    How to ask questions
    Re: 2. How do I ask a question on the forums?
    Include as much relevant information with your question as possible, starting with:
    APEX version
    DB version, edition and host OS
    Web server architecture (EPG, OHS or APEX listener), platform, and host OS
    Browser(s)/version(s) used
    Theme
    Templates
    Region type(s)

  • How to create ST using BAPI_SLSTRANSACT_CREATEMULTI

    Hi Friends,
    I'm trying to create NEW SalesTransaction(ST) using fm 'BAPI_SLSTRANSACT_CREATEMULTI' in an another new RFC function module. The header is creating but not Partner,Item,product and all. I need to create ST using this BAPI.
    The input i'm passing is partner,pro`duct,product description,net price,net value,quantity,PO number,Order number,Quantity,ATP quntity,Date,Address including email and phone.
    The problem i'm facing is <b>HOW TO FILL THESE INPUT VALUES IN THE  EXACT FILEDS IN THE TABLES OF BAPI.</b>
    I'm getting these errors.
    <b>1)W CRM_ORDER            004 Referenced object type (PARTNER) not allowed       
    2)W CRM_ORDER            004 Referenced object type (SALES) not allowed         
    3)E CRM_ORDERADM_I       006 Item  was not found.                               
    4)E CRM_ORDER            005 Incomplete interface data - No reference specified 
    5)S CRM_MESSAGES         005 A log has been generated for single document       </b>
    The code i did is:
      TYPES: TYP_HEADER          TYPE BAPIBUS20001_HEADER_INS,
             TYP_ITEM            TYPE BAPIBUS20001_ITEM,
             TYP_SALES           TYPE BAPIBUS20001_SALES,
             TYP_PARTNER         TYPE BAPIBUS20001_PARTNER_INS,
             TYP_SCHEDULELINE    TYPE BAPIBUS20001_SCHEDLIN,
             TYP_CREATED_PROCESS TYPE BAPIBUS20001_HEADER_INS,
             TYP_SAVED_PROCESS   TYPE BAPIBUS20001_OBJECT_ID,
             TYP_INPUT_FIELDS    TYPE BAPIBUS20001_INPUT_FIELDS.
      DATA: IT_HEADER            TYPE TYP_HEADER OCCURS 10
                                      WITH HEADER LINE,
            IT_ITEM              TYPE TYP_ITEM OCCURS 10
                                      WITH HEADER LINE,
            IT_SALES             TYPE TYP_SALES OCCURS 10
                                      WITH HEADER LINE,
            IT_PARTNER           TYPE TYP_PARTNER OCCURS 10
                                      WITH HEADER LINE,
            IT_SCHEDULELINE      TYPE TYP_SCHEDULELINE OCCURS 10
                                      WITH HEADER LINE,
            IT_CREATED_PROCESS   TYPE TYP_CREATED_PROCESS OCCURS 10
                                      WITH HEADER LINE,
            IT_SAVED_PROCESS     TYPE TYP_SAVED_PROCESS OCCURS 10
                                      WITH HEADER LINE,
            IT_INPUT_FIELDS      TYPE TYP_INPUT_FIELDS OCCURS 10
                                      WITH HEADER LINE,
            V_ORDER_DATE(15)     TYPE C,
            V_GUID_H             TYPE BBP_GUID_32,
            V_GUID_I             TYPE BBP_GUID_32,
            V_GUID_P             TYPE BBP_GUID_32,
            V_GUID_SA            TYPE BBP_GUID_32,
            V_GUID_SC            TYPE BBP_GUID_32.
      PERFORM GET_GUID CHANGING V_GUID_H.
      PERFORM GET_GUID CHANGING V_GUID_I.
      PERFORM GET_GUID CHANGING V_GUID_P. 
      PERFORM GET_GUID CHANGING V_GUID_SA.
      PERFORM GET_GUID CHANGING V_GUID_SC.
    * Header
      IT_HEADER-GUID       = V_GUID_H.
      IT_HEADER-PROCESS_TYPE = PROCESS_TYPE(INPUT).
      IT_HEADER-DESCRIPTION  = DESCRIPTION(INPUT).
      APPEND IT_HEADER.
    * Item
      IT_ITEM-GUID = V_GUID_I.
      IT_ITEM-HEADER = V_GUID_H.
      IT_ITEM-ORDERED_PROD = PRODUCT(INPUT).
      IT_ITEM-DESCRIPTION  = PRODUCT_DESCRIPTION(INPUT).
      IT_ITEM-ITM_TYPE     = ITEM_TYPE(INPUT).
      IT_ITEM-MODE         = 'A'.
      APPEND IT_ITEM.
    * Sales
      IT_SALES-REF_GUID = V_GUID_SA.
      IT_SALES-PO_NUMBER_SOLD = PO_NUMBER(INPUT).
      APPEND IT_SALES.
    * Partner
      IT_PARTNER-REF_GUID    = V_GUID_H.
      IT_PARTNER-PARTNER_FCT = '00000001'.
      IT_PARTNER-REF_KIND    = 'A'.
      IT_PARTNER-REF_PARTNER_HANDLE = '0001'.
      IT_PARTNER-KIND_OF_ENTRY = 'A'.
      IT_PARTNER-NO_TYPE     = 'BP'.
      IT_PARTNER-DISPLAY_TYPE = 'BP'.
      IT_PARTNER-PARTNER_NO  = CUSTOMER(INPUT).
      IT_PARTNER-NAME        = NAME(INPUT).
      IT_PARTNER-HOUSE_NO    = HOUSE_NO(INPUT).
      IT_PARTNER-CITY        = CITY(INPUT).
      IT_PARTNER-STREET      = STREET(INPUT).
      IT_PARTNER-COUNTRY     = COUNTRY(INPUT).
      IT_PARTNER-E_MAIL      = EMAIL(INPUT).
      IT_PARTNER-TEL1_NUMBR  = PHONE(INPUT).
      APPEND IT_PARTNER.
    * Schedule line
      IT_SCHEDULELINE-ITEM_GUID = V_GUID_SC.
      IT_SCHEDULELINE-QUANTITY = ATP_QUANTITY(INPUT).
      APPEND IT_SCHEDULELINE.
    * Input fields
      IT_INPUT_FIELDS-REF_GUID    = V_GUID_H.
      IT_INPUT_FIELDS-OBJECTNAME  = 'ORDERADM_H'.
      IT_INPUT_FIELDS-LOGICAL_KEY = '1'.
      APPEND IT_INPUT_FIELDS.
      IT_INPUT_FIELDS-REF_GUID    = V_GUID_I.
      IT_INPUT_FIELDS-OBJECTNAME  = 'ORDERADM_I'.
      IT_INPUT_FIELDS-LOGICAL_KEY = '1'.
      APPEND IT_INPUT_FIELDS.
      IT_INPUT_FIELDS-REF_GUID    = V_GUID_H.
      IT_INPUT_FIELDS-OBJECTNAME  = 'PARTNER'.
      IT_INPUT_FIELDS-LOGICAL_KEY = '1'.
      APPEND IT_INPUT_FIELDS.
      IT_INPUT_FIELDS-REF_GUID    = V_GUID_SA.
      IT_INPUT_FIELDS-OBJECTNAME  = 'SALES'.
      IT_INPUT_FIELDS-LOGICAL_KEY = '1'.
      APPEND IT_INPUT_FIELDS.
      IT_INPUT_FIELDS-REF_GUID    = V_GUID_SC.
      IT_INPUT_FIELDS-OBJECTNAME  = 'SCHEDLIN'.
      IT_INPUT_FIELDS-LOGICAL_KEY = '1'.
      APPEND IT_INPUT_FIELDS.
      CALL FUNCTION 'BAPI_SLSTRANSACT_CREATEMULTI'
    *   EXPORTING
    *     TESTRUN                =
        TABLES
          HEADER                 = IT_HEADER
          ITEM                   = IT_ITEM
          RETURN                 = RETURN
          SALES                  = IT_SALES
          PARTNER                = IT_PARTNER
    *     ORGANISATION           =
    *     SHIPPING               =
    *     APPOINTMENT            =
    *     TEXT                   =
    *     STATUS                 =
          INPUT_FIELDS           = IT_INPUT_FIELDS
    *     PRODUCT                =
          SCHEDULELINE           = IT_SCHEDULELINE
    *     CUSTOMER_HEAD          =
    *     CUSTOMER_ITEM          =
    *     PRICING                =
    *     PRICING_ITEM           =
    *     CONDITION_CREATE       =
    *     BILLING                =
    *     CONFIG_CFG             =
    *     CONFIG_BLB             =
    *     CONFIG_INS             =
    *     CONFIG_PRT             =
    *     CONFIG_VAL             =
    *     CONFIG_VK              =
    *     CONFIG_REF             =
    *     ADDRESS                =
    *     BILLPLAN               =
    *     BILLPLAN_DATE          =
          CREATED_PROCESS        = IT_CREATED_PROCESS
          SAVED_PROCESS          = IT_SAVED_PROCESS
    *     DOC_FLOW               =
    *     PAYPLAN                =
    *     PAYPLAN_DATE           =
      COMMIT WORK.
      READ TABLE RETURN WITH KEY TYPE = 'E'.
      IF SY-SUBRC NE 0.
         DATA: V_RETURN LIKE  BAPIRET2.
         CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
           IMPORTING
             RETURN        = V_RETURN.
         CHECK NOT IT_SAVED_PROCESS[] IS INITIAL.
         READ TABLE IT_SAVED_PROCESS INDEX 1.
         CHECK SY-SUBRC EQ 0.
           SALES_PROCESS = IT_SAVED_PROCESS-OBJECT_ID.
      ENDIF.
    ENDFUNCTION.
    FORM GET_GUID CHANGING P_GUID TYPE  GUID_32.
      CALL FUNCTION 'GUID_CREATE'
        IMPORTING
          EV_GUID_32       = P_GUID.
    ENDFORM.
    Can any one help me in this.

    Hey Varda,
    I generated a sales order in CRM with BAPI_SLSTRANSACT_CREATEMULTI for a single line item...that is it accepts a single product and generates a sales order...but in real time there can be any number of line items for a sales order...
    *1) Now i need to make this code generic such that it can accept any number of materials...line items?
    How can i make the code generic ....such that it works for any number of line items.*
    *2) Also the CRM is currently configured in such a way that , there is a provision to assign ship to party at item level for each material.
    How can i programatically replicate this? I need to assign a diiferent ship to party for each material in the sales order.*
    how can i programatically replicate this?...
    this is my code for cresating a sales order in CRM for a single line item or single material
    *************include constants
    include crm_direct.
    ************// GUIDs
    data: lv_guid_h type GUID_32, "HEADER GUIDE
    lv_guid_i type GUID_32, "ITEM GUIDE
    lv_guid_sl type GUID_32, "SCHEDULE LINE GUIDE
    lv_guid_p type GUID_32. "PARTNER GUIDE
    ***********// Handles
    data: lv_current_handle type crmt_handle, "CURRENT HANDLE
    lv_handle_h type crmt_handle, "HEADER HANDLE
    lv_handle_i type crmt_handle, "ITEM HANDLE
    lv_handle_sl type crmt_handle, "SCHEDULE LINE HANDLE
    lv_handle_p type crmt_handle. "PARTNER HANDLE
    ***********// Administration header + item + etc
    data: lt_salesorder_header type table of bapibus20001_header_ins, "LT_SALESORDER_HEADER
    ls_salesorder_header type bapibus20001_header_ins, "LS_SALESORDER_HEADER
    lt_salesorder_item type table of bapibus20001_item, "LT_SALESORDER_ITEM
    ls_salesorder_item type bapibus20001_item, "LS_SALESORDER_ITEM
    lt_scheduleline type table of BAPIBUS20001_SCHEDLIN, "LT_SCHEDULELINE
    ls_scheduleline type BAPIBUS20001_SCHEDLIN, "LS_SCHEDULELINE
    lt_partner type table of BAPIBUS20001_PARTNER_INS, "LT_PARTNER
    ls_partner type BAPIBUS20001_PARTNER_INS, "LS_PARTNER
    ls_logical_key TYPE crmt_partner_logic_partner_key, "LS_LOGICAL_KEY
    lt_organisation type table of BAPIBUS20001_ORGMAN_INS, "LT_ORGANISATION
    ls_organisation type BAPIBUS20001_ORGMAN_INS. "LS_ORGANISATION
    *********// Saved sales orders
    data: lt_saved_process type table of bapibus20001_object_id, "LT_SAVED_PROCESS
    data:
    ls_saved_process type bapibus20001_object_id, "LS_SAVED_PROCESS
    ls_salesorder type CRMT_RETURN_OBJECTS_STRUC. "LS_SALESORDER
    data: lt_input_fields type table of bapibus20001_input_fields, "LT_INPUT_FIELDS
    ls_input_fields type bapibus20001_input_fields, "LS_INPUT_FIELDS
    ls_return type bapiret2. "LS_RETURN
    data: lt_return type table of bapiret2. "LT_RETURN
    ***********// Macro definition to populate structure and input field This, called as
    *_set_field ls_salesorder_header GUID lv_guid_h
    *is exploded as
    ls_salesorder_header-GUID = lv_guid_h.
    ls_input_fields-fieldname = 'GUID'.
    append ls_input_fields to lt_input_fields.
    *Note 1: &2 (field name) MUST be uppercase
    *Note 2: for the salesorder header, Macro has not been used to show how the code should look like.
    *except for that the macro has been used everywhere else.
    define setfield.
    &1-&2 = &3.
    ls_input_fields-fieldname = '&2'.
    append ls_input_fields to lt_input_fields.
    end-of-definition.
    *****// end of macro definition
    ******// fill order administration header
    perform get_guid changing lv_guid_h.
    add 1 to lv_handle_h.
    ls_salesorder_header-guid = lv_guid_h.
    ls_salesorder_header-handle = lv_handle_h.
    ls_salesorder_header-process_type = 'ZWEB'.
    clear ls_input_fields.
    ls_input_fields-ref_handle = lv_handle_h.
    ls_input_fields-ref_guid = lv_guid_h.
    *ls_input_fields-ref_kind = gc_object_ref_kind-orderadm_h.
    ls_input_fields-objectname = gc_object_name-orderadm_h.
    ls_input_fields-fieldname = 'GUID'.
    append ls_input_fields to lt_input_fields.
    ls_input_fields-fieldname = 'HANDLE'.
    append ls_input_fields to lt_input_fields.
    ls_input_fields-fieldname = 'PROCESS_TYPE'.
    append ls_input_fields to lt_input_fields.
    append ls_salesorder_header to lt_salesorder_header.
    **********// fill organisation data (Interface needs this, some times may rely on sales org determination instead...
    clear ls_input_fields.
    ls_input_fields-ref_handle = lv_handle_h.
    ls_input_fields-ref_guid = lv_guid_h.
    ls_input_fields-ref_kind = gc_object_ref_kind-orderadm_h.
    ls_input_fields-objectname = gc_object_name-orgman.
    setfield ls_organisation REF_GUID lv_guid_h.
    setfield ls_organisation REF_HANDLE lv_handle_h.
    setfield ls_organisation REF_KIND gc_object_ref_kind-orderadm_h.
    setfield ls_organisation SALES_ORG_RESP SO_RESP . "(input).
    setfield ls_organisation SALES_ORG SALES_ORG. "(input).
    setfield ls_organisation DIS_CHANNEL DIS_CHNL. "(input).
    setfield ls_organisation DIVISION DIVISION. "(input).
    append ls_organisation to lt_organisation.
    **********// fill order administration item
    perform get_guid changing lv_guid_i.
    lv_handle_i = lv_handle_h.
    add 1 to lv_handle_i.
    clear ls_input_fields.
    ls_input_fields-ref_guid = lv_guid_i.
    ls_input_fields-ref_handle = lv_handle_i.
    *ls_input_fields-ref_kind = gc_object_ref_kind-orderadm_i.
    ls_input_fields-objectname = gc_object_name-orderadm_i.
    setfield ls_salesorder_item GUID lv_guid_i.
    setfield ls_salesorder_item HEADER lv_guid_h.
    setfield ls_salesorder_item HANDLE lv_handle_i.
    setfield ls_salesorder_item HEADER_HANDLE lv_handle_h.
    setfield ls_salesorder_item ORDERED_PROD PRODUCT . "(input).
    setfield ls_salesorder_item ITM_TYPE 'ZTAN'.
    setfield ls_salesorder_item MODE 'A'.
    *adjustment taken from standard include LCMS_MAPPERF04
    *(see where-used-list for BAPI_SLSTRANSACT_CREATEMULTI, program LCMS_MAPPERU11)
    delete lt_input_fields where fieldname = 'HANDLE'
    OR
    fieldname = 'HEADER_HANDLE'.
    append ls_salesorder_item to lt_salesorder_item.
    ********// fill schedule line for item
    perform get_guid changing lv_guid_sl.
    add 1 to lv_handle_sl.
    clear ls_input_fields.
    ls_input_fields-ref_guid = lv_guid_i.
    ls_input_fields-ref_handle = lv_handle_i.
    ls_input_fields-ref_kind = gc_object_ref_kind-orderadm_i.
    ls_input_fields-objectname = gc_object_name-schedlin.
    setfield ls_scheduleline ITEM_GUID lv_guid_i.
    setfield ls_scheduleline GUID lv_guid_sl.
    setfield ls_scheduleline HANDLE lv_handle_sl.
    setfield ls_scheduleline ITEM_HANDLE lv_handle_i.
    setfield ls_scheduleline QUANTITY quantity. "(input).
    append ls_scheduleline to lt_scheduleline.
    ********// fill partner line
    *perform get_guid changing lv_guid_p.
    *the partner use the logical key as well
    ls_logical_key-ref_partner_handle = '0001'.
    clear ls_input_fields.
    ls_input_fields-ref_guid = lv_guid_h.
    ls_input_fields-ref_handle = lv_handle_h.
    ls_input_fields-ref_kind = gc_object_ref_kind-orderadm_h.
    ls_input_fields-objectname = gc_object_name-partner.
    ls_input_fields-logical_key = ls_logical_key.
    setfield ls_partner REF_GUID lv_guid_h.
    setfield ls_partner REF_HANDLE lv_handle_h.
    setfield ls_partner REF_KIND gc_object_ref_kind-orderadm_h.
    setfield ls_partner REF_PARTNER_HANDLE '0001'.
    setfield ls_partner KIND_OF_ENTRY 'C'.
    setfield ls_partner PARTNER_FCT '00000001'.
    setfield ls_partner PARTNER_NO SOLD_TO. "(input).
    setfield ls_partner NO_TYPE 'BP'.
    setfield ls_partner DISPLAY_TYPE 'BP'.
    move-corresponding ls_partner to ls_logical_key.
    append ls_partner to lt_partner.
    ls_logical_key-ref_partner_handle = '0002'.
    clear ls_input_fields.
    ls_input_fields-ref_guid = lv_guid_h.
    ls_input_fields-ref_handle = lv_handle_h.
    ls_input_fields-ref_kind = gc_object_ref_kind-orderadm_h.
    ls_input_fields-objectname = gc_object_name-partner.
    ls_input_fields-logical_key = ls_logical_key.
    setfield ls_partner REF_GUID lv_guid_h.
    setfield ls_partner REF_HANDLE lv_handle_h.
    setfield ls_partner REF_KIND gc_object_ref_kind-orderadm_h.
    setfield ls_partner REF_PARTNER_HANDLE '0002'.
    setfield ls_partner KIND_OF_ENTRY 'C'.
    setfield ls_partner PARTNER_FCT '00000002'.
    setfield ls_partner PARTNER_NO SHIP_TO . "(input).
    setfield ls_partner NO_TYPE 'BP'.
    setfield ls_partner DISPLAY_TYPE 'BP'.
    move-corresponding ls_partner to ls_logical_key.
    append ls_partner to lt_partner.
    ls_logical_key-ref_partner_handle = '0003'.
    clear ls_input_fields.
    ls_input_fields-ref_guid = lv_guid_h.
    ls_input_fields-ref_handle = lv_handle_h.
    ls_input_fields-ref_kind = gc_object_ref_kind-orderadm_h.
    ls_input_fields-objectname = gc_object_name-partner.
    ls_input_fields-logical_key = ls_logical_key.
    setfield ls_partner REF_GUID lv_guid_h.
    setfield ls_partner REF_HANDLE lv_handle_h.
    setfield ls_partner REF_KIND gc_object_ref_kind-orderadm_h.
    setfield ls_partner REF_PARTNER_HANDLE '0003'.
    setfield ls_partner KIND_OF_ENTRY 'C'.
    setfield ls_partner PARTNER_FCT '00000003'.
    setfield ls_partner PARTNER_NO BILL_TO ."(input).
    setfield ls_partner NO_TYPE 'BP'.
    setfield ls_partner DISPLAY_TYPE 'BP'.
    move-corresponding ls_partner to ls_logical_key.
    append ls_partner to lt_partner.
    ls_logical_key-ref_partner_handle = '0004'.
    clear ls_input_fields.
    ls_input_fields-ref_guid = lv_guid_h.
    ls_input_fields-ref_handle = lv_handle_h.
    ls_input_fields-ref_kind = gc_object_ref_kind-orderadm_h.
    ls_input_fields-objectname = gc_object_name-partner.
    ls_input_fields-logical_key = ls_logical_key.
    setfield ls_partner REF_GUID lv_guid_h.
    setfield ls_partner REF_HANDLE lv_handle_h.
    setfield ls_partner REF_KIND gc_object_ref_kind-orderadm_h.
    setfield ls_partner REF_PARTNER_HANDLE '0004'.
    setfield ls_partner KIND_OF_ENTRY 'C'.
    setfield ls_partner PARTNER_FCT '00000004'.
    setfield ls_partner PARTNER_NO PAYER ."(input).
    setfield ls_partner NO_TYPE 'BP'.
    setfield ls_partner DISPLAY_TYPE 'BP'.
    move-corresponding ls_partner to ls_logical_key.
    append ls_partner to lt_partner.
    *******// example of a second partner function (custom) with data override
    *ls_logical_key-ref_partner_handle = '0002'.
    *clear ls_input_fields.
    *ls_input_fields-ref_guid = lv_guid_h.
    *ls_input_fields-ref_handle = lv_handle_h.
    *ls_input_fields-ref_kind = gc_object_ref_kind-orderadm_h.
    *ls_input_fields-objectname = gc_object_name-partner.
    *ls_input_fields-logical_key = ls_logical_key.
    *_set_field ls_partner REF_GUID lv_guid_h.
    *_set_field ls_partner REF_HANDLE lv_handle_h.
    *_set_field ls_partner REF_KIND gc_object_ref_kind-orderadm_h.
    *_set_field ls_partner REF_PARTNER_HANDLE '0002'.
    *_set_field ls_partner KIND_OF_ENTRY 'B'. "manual entry...
    *_set_field ls_partner PARTNER_FCT customFct(input).
    *_set_field ls_partner PARTNER_NO bpNumber(input).
    *_set_field ls_partner NO_TYPE 'BP'.
    *_set_field ls_partner DISPLAY_TYPE 'BP'.
    *_set_field ls_partner TITLE 'Mr.'.
    *_set_field ls_partner FIRSTNAME 'John'.
    *_set_field ls_partner LASTNAME 'Smith'.
    *_set_field ls_partner STR_SUPPL1 'John Smith and Co'.
    *_set_field ls_partner STREET 'Street1'.
    *_set_field ls_partner STR_SUPPL3 'Street4'.
    *_set_field ls_partner HOUSE_NO '42'.
    *_set_field ls_partner CITY 'Townville'.
    *_set_field ls_partner DISTRICT 'Districtshire'.
    *_set_field ls_partner POSTL_COD1 'AA1 2BB'.
    *note now ...
    *adjustment taken from standard include LCMS_MAPPERF04
    *(see where-used-list for BAPI_SLSTRANSACT_CREATEMULTI, program LCMS_MAPPERU11)
    *I don't use macro because name of the field in input_table is different
    *_set_field ls_partner COUNTRYISO 'GB'.
    *instead
    ls_partner-COUNTRYISO = 'GB'.
    ls_input_fields-fieldname = 'COUNTRY'.
    append ls_input_fields to lt_input_fields.
    *_set_field ls_partner LANGU_ISO 'EN'.
    ls_partner-LANGU_ISO = 'EN'.
    ls_input_fields-fieldname = 'LANGU'.
    append ls_input_fields to lt_input_fields.
    move-corresponding ls_partner to ls_logical_key.
    append ls_partner to lt_partner.
    *Create sales orders *
    call function 'BAPI_SLSTRANSACT_CREATEMULTI'
    EXPORTING
    testrun = false
    TABLES
    header = lt_salesorder_header[]
    item = lt_salesorder_item[]
    partner = lt_partner[]
    organisation = lt_organisation[]
    input_fields = lt_input_fields[]
    scheduleline = lt_scheduleline[]
    saved_process = lt_saved_process[]
    return = lt_return[].
    *************// get the GUID of the created object
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    WAIT = 'X'
    IMPORTING
    RETURN = lt_return1.
    INCLUDE ZZGVBAPISALESORDER_GET_GUIDF01.

  • How to create material using BAPI  Methods?

    hi,
    how to create material master dat using BAPI?
    could u guide me
    i will be waiting for reply.
    REGARDS
    ESWAR.

    Hi eswar,
    Try this code to create gods mmovement...
    DATA: GOODSMVT_HEADER LIKE BAPI2017_GM_HEAD_01,
          " Material Document Header Data
          GOODSMVT_CODE LIKE BAPI2017_GM_CODE,
          " Assign code to transaction for BAPI goods movement
          MATERIALDOCUMENT LIKE BAPI2017_GM_HEAD_RET-MAT_DOC,
          " Number of Material Document
          GOODSMVT_ITEM LIKE BAPI2017_GM_ITEM_CREATE OCCURS 0 WITH HEADER
          LINE,
          " Create Material Document Item
          RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE
          " Return table for messages
    *Fill values in header
    GOODSMVT_HEADER-PSTNG_DATE = '20030825'.
    GOODSMVT_HEADER-DOC_DATE = '20030802'.
    *Fill GOODSMVT_CODE
    GOODSMVT_CODE-GM_CODE = '05' .
    *Fill Item Table
    GOODSMVT_ITEM-MATERIAL = '100-100'.
    GOODSMVT_ITEM-PLANT = '1000'.
    GOODSMVT_ITEM-STGE_LOC = '0001'.
    GOODSMVT_ITEM-MOVE_TYPE = '501'.
    GOODSMVT_ITEM-ENTRY_QNT = '50'.
    GOODSMVT_ITEM-ITEM_TEXT = 'Test Sanket'.
    *GOODSMVT_ITEM-COSTCENTER = '1000'.
    APPEND GOODSMVT_ITEM.
    *Create Good's movement
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
      EXPORTING
        GOODSMVT_HEADER  = GOODSMVT_HEADER
        GOODSMVT_CODE    = GOODSMVT_CODE
      IMPORTING
        MATERIALDOCUMENT = MATERIALDOCUMENT
      TABLES
        GOODSMVT_ITEM    = GOODSMVT_ITEM
        RETURN           = RETURN.
    *Commit BAPI
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
      EXPORTING
        WAIT = 'X'.
    *Display Goods movement number
    FORMAT COLOR 6 INVERSE ON.
    READ TABLE RETURN WITH KEY TYPE = 'E'.
    IF SY-SUBRC = 0.
      WRITE: /,'ERROR! Goods movement not created'.
    ELSE.
      WRITE: /,'Goods movent number',MATERIALDOCUMENT COLOR 5,
               'posted for material',GOODSMVT_ITEM-MATERIAL.
    ENDIF.
    FORMAT COLOR OFF INVERSE OFF.
    try this on report program and create a goods movement.
    Sanket.

  • How to create site using DWS with "use unique permissions" set to false?

    Is there web service call that can set newly created site (created using dws web service) to NOT use unique permissions?
    Or how to make site to inherit parents permissions? (using web services)
    Thank you
    Komgal

    I actually have a different definition for this web service than the one specified. I possibly have an older version of SharePoint Foundation 2010.
    The one I get from SitesSoapClient is as such:
    string SitesSoapClient.CreateWeb(string url, string title, string description, string templateName, uint language, uint locale, uint collationLocale, bool uniquePermissions, bool anonymous, bool presence)
    OK, different declaration, but no problem: just put in some fields and we're good, right? As it turns out, that's not the case. I get an empty exception being thrown (actually the FaultException says "Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException'
    was thrown." which tells me almost nothing about the problem) every time I call this function. I've altered all the parameters to check if there's maybe something wrong with what I'm passing, but I can't figure out what the problem may be.
    For the record, here's my code snippet:
    SitesSoapClient client = new SitesSoapClient(binding, endpoint);
    client.CreateWeb("MyWebBD", "My New Website", "My description", "STS#0", 1033, 1033, 1033, false, false, false);
    ... I've tried changing "MyWebBD" to different things, such as to the absolute URL "HTTP://blahblah/MyWebBD" . I've also tried changing the title and the boolean values, none of which seems to make any difference.
    Anyway, I know this is a thread from 3 months ago, but I'm wondering if there's a solution to this or am I SOL for now?
    P.S. I noticed that there are at least TWO web service definitions on MSDN that are slightly different. The one I went to initially was
    http://msdn.microsoft.com/en-us/library/sites.sites_members(v=office.12).aspx and eventually when I was looking for how to create a SharePoint site, I found
    http://msdn.microsoft.com/en-us/library/websvcsites.sites_members.aspx . The latter page at least shows a definition for "CreateWeb," where the former does not. Not sure the relevance of this information, but it seems there's something de-synchronized
    between the two. Possibly an older version of the page or something?? 

Maybe you are looking for

  • Open Field in ALV Report

    Hi all, i have to develop a ALV report. In that report i have to put a open quantity column , so that the user can enter values in that, and that value should get updated in the database. So please suggest me how to develop such report with open fiel

  • Web Apps FAQ

    Hello, I am working on knowledge base entries for developing Web Applications with Sun ONE Studio. I would be interested in whether any of the following are helpful. Also, are there other entries you think should be added? Other comments? Corrections

  • Shipment Cost

    Hi Folks, I have a problem with Shipment cost Document having two line items in that . First line item showing the net value as "Zero"  and Second line item having some net value "xxxxx" . Now my issue why for line item " 1"  the condition type is no

  • How do I initialize Ultrabeat? - i want to build my own kit from a sam...

    Hello everyone, i've done this before!, but now i can't remember how. i want to first initialize UltraBeat and then hopefully, just drag and drop .wav samples into UB to create a new kit. I hope it's as easy to do this as it is in the EXS sampler. Al

  • Is a pram/smc reset without a battery possible?

    I have a macbook aluminum unibody 2008. It has a removable battery, but it died on me. I've been running my macbook on the power adapter. My down arrrow key does not work and the time is incorrect. I tried to do a pram reset, but it didn't work. Do I