Parnter Fucntion to be fetched

Hi ,
We have a requirement where in I need to pass the ship to party and sold to party to one of the function module
SD_SALESDOCUMENT_CREATE. In which the header data ,partner data and item data has to be passed. We used VBRK table to pass ..
wa_sales_header_in-division   = wa_vbrk1-spart.
  wa_sales_header_in-sales_org  = wa_vbrk1-vkorg.
  wa_sales_header_in-distr_chan = wa_vbrk1-vtweg.
  wa_sales_header_in-doc_type   = co_zpcr.
  wa_sales_header_in-ord_reason = co_zre.
  wa_sales_header_in-price_date = wa_vlcdiavehi_ct-zz_prsdt.
but while doing so it thows an error as ship to party and sold to party need to be enter.
I have some hint that while fetching the billing doc from VBRK
table I need to fetch the Sales doc somehow and in the process need to fetch parnter function.
But I am not getting how to achieve that.
Please provide your valuable inputs.
Thanks in advance
Mohinder Singh Chauhan

Hai,
Get VBRP entries for the VBRK entries that you have.
Now:
Select partner function from VBPA table
where vbpa-vbeln = vbrp-aubel
   and vbpa-posnr = vbrp-aupos.

Similar Messages

  • Standard funtion module to fetch IDOC in xml format

    Hi Experts
    I am not from ABAP background, am working in SAP PI. I have a queay regarding standard function modules in ABAP.
    I am wrote a java code to fetch IDOC by making a call to the ABAP standard functions. (passing an idoc number and fetching the idoc)
    The IDOC that i am receiving is in Flat format, but I want to fetch the IDOC in XML format.
    Is there any Standard fucntion module to fetch the IDOC in xml format?
    regards,
    Osman Abdul Aziz Jabri

    hai ,
                      in SE37 tcode
                      Check with IDOCTOXML u get FM 's
                                                 use sutable ur requirement.
    Moderator message: please do not use SMS speak in these forums.
    Edited by: Thomas Zloch on Jan 5, 2011 6:03 PM

  • Multiple Partner Fucntions- Pop UP for Single Partner Funtion

    Hi Gurus,
    Agent Name from the Partner functions to be displayed in Sale order.
    The requirement is to display the Agent name in the Sale order- Permanently or atleast Pop UP:
    when we add more than one SA (agents Partner function)  as parnter function in Customer Master. we get pop up to select the one of the SA partner function(i.e. Agent). Can this be made logic to bring even though only one  parnter fucntion SA (Agent) is assigned in the partner functions for a particular Customer?
    Thanks in Advance.
    Regards
    SRI

    Hi Sri,
    The logic is that, the pop up screen is there to enable users to select one of many partner functions. For example, a customer may use different transporters, so we enter all these possible transporters in the customer master.
    When a sales order is created, the system prompts the user to select the right transporter.
    If only one transporter exists in the customer master, there is no need to chose the right one because only one exists. SO the system defaults this one to the sales order.
    The whole principle is what is assigned to the customer master, because if not assigned to the CM it cannot be entered in the sales documents at all,.

  • Ship to party and Delivery address Different?

    The requirement is that the Ship to party address be different than the delivery address.
    Options i have thought about is
    1) Maintain the ref address in TEXT.
    2) Maintain a separate partner function.
    Please give suggestions as to how can we maintain 2 different addresses for the same ship to party?
    The user wants to have both addresses on the document.
    The TEXT option is not acceptable by the user.
    Please help.
    Thanks in advance. Point will be awarded for any helpful answer!
    Regards,
    Shrads

    This kind of requirement is very common in Consumer goods industries. I have worked on similar kind of requirement and we have mapped it in sap as below.
    1.Create customer master record with a new account group for the delivery address with parnter funciton as SF(Ship For)
    2.Assign this SF record in SH master record or SP record
    2.In sales document parnter determination proceudre include the parnter function SF by fetching it either from ship to master recrod or sold to
    Please let me know if you need any further details.
    Thanks,
    Srini

  • Activity Long Text from Service Notification

    Hi,
    We are designing a report to fetch some fields from the service notification. I am not able to get 2 fileds which are 'Notification Long Text' and 'Activity Long Text'. Can anyone help us to find out how we can bring these fields into the report?
    (I can get activity text from table QMMA, but from where can I get activity long text?)
    Please let us know the table names or any fucntional module to fetch these field values?
    Regards,
    SAM

    Hi,
    Thank you very much for your input.
    I need to get the notification Activity Long Text .So which are the following parameters I need to pass to the FM READ_TEXT?
    Text Name : ?
    Language : EN
    Text ID : ?
    Text Object : ?
    Please let me knowfrom where and what values I need to pass to the fileds Text name, Text ID and Text object?
    Regards,
    SAM

  • Activity Long Text from the Notification

    Hi,
    We are designing a report to fetch some fields from the service notification. I am not able to get 2 fileds which are 'Notification Long Text' and 'Activity Long Text'. Can anyone help us to find out how we can bring these fields into the report?
    (I can get activity text from table QMMA, but from where can I get activity long text?)
    Please let us know the table names or any fucntional module to fetch these field values?
    Regards,
    SAM

    Hi,
    The same question i think
    Language->EN, Text ID:- LTXT ,Text Object : QMMA , Name :- I think starting with 001Notification Number0001
    But the simple way to identify all these are , open IW22 -> Open that Activity Longtext and goto menu ->Header -u will find Text Header details ..
    Hope this helps u
    regards
    pushpa

  • SLA escalation of incidents to upper level

    Hi Everyone,
    I am configuring a Solman 7.1 SP10 to be able to handle var partner scenarios.
    Every time when an incident is created in Solman the organisation unit First Line Support is assigned to it as Support Team. After that an email is sent to the email address of First Line Support to inform the employees about the new incident.
    With the help of this document I set up the SLA escalation in Solman, but now I have a question in connection with it.
    According to the customizing steps in the mentioned document, after the defined threshold is reached, a new email is sent to the Support team (in this case to the First Line Support). This is because I set the action ZMIV_VAR_SLA_IRT_ESC to be Parner dependent and I set the Parnter fucntion to SLFN0003.
    In contrast with this I would appreciate the following escalation mechanism: After the defined threshold is reached, a new email is sent to the Support Manager, or the Head of support Team. The declared organisation model is the following:
    I don't know whether it is possible. If it is, how?
    Thanks!

    Hi Attila.
    Could you solve your issue?
    I have same question about sending SLA escalation email notification to head of Support Team.
    I think one of way is to use the BRF+ for creating appropriate rules.
    thanks,
    Yessen

  • Fetch email address of user responsible in IW32

    How to fetch the email address of User responsible in IW32 transaction? OR What is the logic to get PERSNUMBER of a partner "User responsible"on the basis of work order number?

    First get the OBJNR from AUFK table
    Now go to table IHPA with the OBJNR value and PARNTER Function VU (VU is for User Responsible)
    Get the PARNR value from IHPA table.
    Now Go to Table USR21 with the PARNR from IHPA, as BNAME. Then you get the
    PERSNUMBER and 
    ADDRNUMBER 
    Now go to the Table ADR6 with the Above PERSNUMBER   and ADDRNUMBER , Get the email address .
    Thats all.

  • Fetch data from Table

    Hi all,
    I am using function module through Call fucntion.
    There i am getting <b>Table Name</b> as import Parameter.
    Now i need to fetch data from that table (Which name we got througfh function module).
    Is there any point to know how can we fetch data from runtime table .
    i need some sample code for this.
    Thanks inn advance,
    Regards,
    Bhaskar

    Hello Bhaskar,
    I don't have an SCM system, so I cannot test out that FM
    However, I modified the above code to update the table as well
    *& Report  ZKRIS_DYNAMIC_TABLE_READ_MOD
    REPORT  ZKRIS_DYNAMIC_TABLE_READ_MOD LINE-SIZE 256.
    DATA : LV_FIELD_DESC TYPE STRING.
    DATA : LV_DATA1 TYPE STRING.
    DATA : LV_DETAIL(128).
    DATA : COMMA TYPE C VALUE ','.
    DATA : LV_TNAME LIKE DD02L-TABNAME.
    DATA : LV_DBTAB1 LIKE DD02L-TABNAME.
    DATA : DREF TYPE REF TO DATA.
    DATA : FLAG_MODIFIED.  " determines if database needs to be updated
    FIELD-SYMBOLS: <ITAB> TYPE ANY TABLE, " used to store dynamic tables
                   <WA>    TYPE ANY,      " used to store record data
                    <WA1> TYPE ANY .      " used to store field data
    * call Fm /SAPAPO/TS_PA_COPY_TABLE_GET here
    LV_DBTAB1 = 'ZGSTSET'. " <-- put your table name here
    DATA: IT_FIELDS TYPE X031L OCCURS 0.
    DATA: WA_FIELDS LIKE LINE OF IT_FIELDS.
    CALL FUNCTION 'DDIF_NAMETAB_GET'
      EXPORTING
        tabname           = LV_DBTAB1
    *   ALL_TYPES         = ' '
    *   LFIELDNAME        = ' '
    *   GROUP_NAMES       = ' '
    *   UCLEN             =
    * IMPORTING
    *   X030L_WA          =
    *   DTELINFO_WA       =
    *   TTYPINFO_WA       =
    *   DDOBJTYPE         =
    *   DFIES_WA          =
    *   LINES_DESCR       =
    TABLES
       X031L_TAB         = IT_FIELDS
    *   DFIES_TAB         =
    EXCEPTIONS
       NOT_FOUND         = 1
       OTHERS            = 2
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    * we do not know the sized of the table that must be generated beforehand
    * hence we use field symbols to dynamically generate the internal table
      CREATE DATA DREF TYPE STANDARD TABLE OF (LV_DBTAB1)
                                WITH NON-UNIQUE DEFAULT KEY.
      ASSIGN DREF->* TO <ITAB> .
    * selects all data
      SELECT * FROM (LV_DBTAB1) INTO TABLE <ITAB> .
      LOOP AT <ITAB> ASSIGNING <WA>.
        FLAG_MODIFIED = ''.
        LOOP AT IT_FIELDS INTO WA_FIELDS.
          ASSIGN COMPONENT WA_FIELDS-FIELDNAME OF STRUCTURE <WA>
            TO <WA1>.
          IF WA_FIELDS-FIELDNAME = 'FIRSTNAME'. " fieldname in the table you wish to modify
            IF <WA1> = 'Kris'. " old value
              <WA1> = 'NewName'. " new value
              MODIFY TABLE <ITAB> FROM <WA>.
              FLAG_MODIFIED = 'X'.
            ENDIF.
          ENDIF.
          WRITE <WA1>. " comment this line to remove the display
        ENDLOOP.
        IF FLAG_MODIFIED = 'X'. " updates database only if the record was changed
          UPDATE (LV_DBTAB1) FROM <WA>.
    *     note that if the field you choose is a key field, sy-subrc will be set to 4
        ENDIF.
    *   display
        NEW-LINE.
      ENDLOOP.

  • Pop email no longer fetching emails

    I just updated to iOS 8.0.2 and today I noticed that my email accounts are no longer fetching new emails.  When I swipe down to update, I get the spinning wheel of agony, and nothing.  I check on my computer and I have numerous new emails.
    This is a serious bug that needs to be corrected.
    Also, third-party keyboard are still be deselected and the default apple keyboard keeps reappearing when I use an app that requires the use of the keyboard.  Either make option to select default keyboard, or let the last selected keyboard always appear.  When I use my phone after it's sat a bit, I must then hit the globe icon twice on the default apple keyboard to bring back my third-party keyboard.
    Not polished!

    Hello Win-AppUser,
    After reviewing your post, I have located an article that can help in this situation. It contains a number of troubleshooting steps and helpful advice concerning mail issues:
    iOS: Troubleshooting Mail
    Thank you for contributing to Apple Support Communities.
    Cheers,
    BobbyD

  • FAGL Table to fetch closing balances period wise

    Dear Experts,
    I want to fetch GL Closing balances period wise.  I have checked GLT0, where no entry is recorded.
    Further i have checked FAGLFLEXT, which does not support period wise closing balances.
    I require GL closing balance, period wise, as shown in FS10N in FI.
    My requirement is to display period wise closing balance,  on GL,  in the report.
    Please suggest and advise.
    Thanks in advance......Alok

    Hi,
    Debug the program RFGLBALANCE , the code and the logic used is easily understandable

  • Error when fetching into a variable of ROWTYPE

    I came across with a vied error when creating the body of a method.
    Problem:
    I have a Type called Emp_typ and a corresponding table Emp_tab.
    When I create the body of get method it gives the following error msg :
    Compilation errors for PACKAGE BODY CHAMITH.EMP_API
    Error: PLS-00386: type mismatch found at 'EMP_ROW' between FETCH cursor and INTO variables
    Line: 9
    Text: fetch get_emp_rec into emp_row;
    Get Method body :
    function get(id_ number) return emp_tab%rowtype IS
    cursor get_emp_rec IS
    select * from emp_tab;
    emp_row emp_tab%rowtype;
    begin
    open get_emp_rec;
    fetch get_emp_rec into emp_row;
    close get_emp_rec;
    return emp_row;
    end;
    However when I do the same without having a type upon the table emp_tab, it works fine.
    Pls give me a solution for that.
    Thanks,
    Chamith

    Hi,
    Let me know the Oracle Database Version.
    Regards,
    Sailaja

  • Text fetching from purchase order of type service po (Domestic)

    hi ,
    i have modified standard po medruck.
    the Header text and Item text are getting displayed.
    But for service Po (Domestic) type , header text and item texts from ME23n transaction are not getting displayed.
    could you please help me....
    i observed that text element 'SUPPL_TEXT' which is in main window of script is responsible for fetching the text.
    help   ........

    Hi Anne,
    Vendor available  (in your eg. X) in the output type messages screen for PO does not have any impact on accounting processes of main vendor (in your eg Y).
    -Ravi

  • In oracle rac, If user query a select query and in processing data is fetched but in the duration of fetching the particular node is evicted then how failover to another node internally?

    In oracle rac, If user query a select query and in processing data is fetched but in the duration of fetching the particular node is evicted then how failover to another node internally?

    The query is re-issued as a flashback query and the client process can continue to fetch from the cursor. This is described in the Net Services Administrators Guide, the section on Transparent Application Failover.

  • Query help - Fetch employees working on two consecutive weekends(SAT/SUN)

    Hello Gurus,
    I have the following requirement and i need your help on this.
    We have a table with all employees effort logged in for the days they have worked. a sample data is given below
    TD_date     Emp_id     Effort     Archive_month
    2-Mar-13     123     8     Mar-13
    9-Mar-13     123     8     Mar-13
    2-Mar-13     213     4     Mar-13
    3-Mar-13     213     4     Mar-13
    24-Mar-13     213     8     Mar-13
    9-Mar-13     312     4     Mar-13
    10-Mar-13     312     4     Mar-13
    16-Mar-13     312     8     Mar-13
    In the above sample data, we have employee 123 who worked on consecutive SATURDAY and 312 who worked on consecutive weekends (9th, 10th and 16th March) but the employee 213 worked on 1st weekend and 4th weekend of the month(Archive_month). So the output should return the employees who worked on two consecutive weekends as below.
    Emp_id
    123
    312
    I have written a query to fetch all employees who worked only on a SAT or SUN which is given below, but i am not able to return the employees who worked on consecutive weekends and i need your help.
    select emp_id, count(*)
    from timesheet_archive
    where archive_month = '03/2013'
    and trim(to_char(td_date,'DAY')) in ('SATURDAY','SUNDAY')
    group by emp_id having count(*) > 1
    order by td_date desc
    Please help me with an approach in SQL or PL/SQL to generate a report of employees who worked on two consecutive weekends.
    Thanks,
    Edited by: 999145 on Apr 9, 2013 11:08 PM
    Edited by: 999145 on Apr 9, 2013 11:10 PM

    hi Manik,
    thanks for your response!!
    Please find the below create and insert scripts for your testing.
    I am also validating the output with my requirement. Thanks for your help!
    create table timesheet_archive as
    (TD_date date,
    Emp_id number(19,0),
    Effort Float,
    Archive_month varchar2);
    insert into timesheet_archive values (to_date('2-MAR-2013','dd-MON-yyyy'), 123,8,'03/2013');
    insert into timesheet_archive values (to_date('9-MAR-2013','dd-MON-yyyy'), 123,8,'03/2013');
    insert into timesheet_archive values (to_date('2-MAR-2013','dd-MON-yyyy'), 213,4,'03/2013');
    insert into timesheet_archive values (to_date('3-MAR-2013','dd-MON-yyyy'), 213,4,'03/2013');
    insert into timesheet_archive values (to_date('24-MAR-2013','dd-MON-yyyy'), 213,8,'03/2013');
    insert into timesheet_archive values (to_date('9-MAR-2013','dd-MON-yyyy'), 321,4,'03/2013');
    insert into timesheet_archive values (to_date('10-MAR-2013','dd-MON-yyyy'), 321,4,'03/2013');
    insert into timesheet_archive values (to_date('16-MAR-2013','dd-MON-yyyy'), 321,8,'03/2013');
    insert into timesheet_archive values (to_date('2-MAR-2013','dd-MON-yyyy'), 124,8,'03/2013');
    insert into timesheet_archive values (to_date('9-MAR-2013','dd-MON-yyyy'), 124,8,'03/2013');
    insert into timesheet_archive values (to_date('16-MAR-2013','dd-MON-yyyy'), 124,4,'03/2013');
    insert into timesheet_archive values (to_date('23-MAR-2013','dd-MON-yyyy'), 124,4,'03/2013');
    insert into timesheet_archive values (to_date('16-MAR-2013','dd-MON-yyyy'), 241,8,'03/2013');
    insert into timesheet_archive values (to_date('23-MAR-2013','dd-MON-yyyy'), 241,4,'03/2013');
    insert into timesheet_archive values (to_date('24-MAR-2013','dd-MON-yyyy'), 241,4,'03/2013');
    insert into timesheet_archive values (to_date('2-MAR-2013','dd-MON-yyyy'), 412,8,'03/2013');
    insert into timesheet_archive values (to_date('3-MAR-2013','dd-MON-yyyy'), 412,8,'03/2013');
    insert into timesheet_archive values (to_date('30-MAR-2013','dd-MON-yyyy'), 412,8,'03/2013');
    insert into timesheet_archive values (to_date('31-MAR-2013','dd-MON-yyyy'), 412,8,'03/2013');

Maybe you are looking for