Partner function AG (Sold-to-party) - read the partner code
Hi All!
I tried to write an ABAP code to get the alphanumeric key, which clearly identifies the partner with partner function AG (Sold-to-party) and RE (Bill-to-party) for the Outbound delivery. I want to compare this two values and output an message if the value is not the same. My problem is that for the partner function AG it is not read the wright value (the value that the system reads is 0).
The ABAP code is:
DATA: ag_ec , re_df TYPE KUNNR .
CLEAR: ag_ec , re_df .
READ TABLE xvbpa WITH KEY parvw = <b>'AG'</b>.
IF sy-subrc = 0 .
<b>ag_ec</b> = xvbpa-kunnr . ENDIF.
READ TABLE xvbpa WITH KEY parvw = 'RE'.
IF sy-subrc = 0 .
re_df = xvbpa-kunnr . ENDIF.
IF NOT re_df EQ ag_ec .
MESSAGE E006(ZFC).
ENDIF.
Could anybody help me to find a solution?
Your time and response will be appreciated.
Florina C.
before going to ur query
it seems there is a declaration problem .
<b>DATA: ag_ec is type 1 character .</b>
<b>DATA: ag_ec type kunnr , re_df TYPE KUNNR .</b>
and now check the value.
DATA: ag_ec , re_df TYPE KUNNR . " this is probelm
CLEAR: ag_ec , re_df .
READ TABLE xvbpa WITH KEY parvw = 'AG'.
IF sy-subrc = 0 .
ag_ec = xvbpa-kunnr . ENDIF.
ag_ec = xvbpa-kunnr . ENDIF.
with the declaration there will be only once character in ag_ec and probably it is picking 0 of that ccustomer value.
regards,
vijay
Similar Messages
-
How to read the source code of class method
Hi,
I want to read the source code of a method which is in a BAdi implementation.
I used SEO_METHOD_GET_SOURCE function module where I passed interface name as class and method name.
But I didn't get the source code. Is there any other function module of method to read the source code.
Thanks and regards,
Venkat.Hi Venkat,
You can still use the Function Module SEO_METHOD_GET_SOURCE with a small change in the parameter passing. It should be:
Paramaters:
MTDKEY-CLSNAME : <Implementaion Classname>
MTDKEY-CPDNAME: <Interfacename~methodname>
STATE : 'A' for active or 'I' for inactive
For example:
MTDKEY-CLSNAME :ZCL_IM_PLM_AUDIT_ALV_GRID
MTDKEY-CPDNAME: IF_EX_PLM_AUDIT_ALV_GRID~ON_USER_COMMAND
STATE: A
After executing you will get the source code in the form of string in the 'SOURCE' parameter.
Hope this helps you.
Regards,
Swarna Munukoti -
Hi,
I want to know how to read the source code of web dynpro java from the source folder i.e. without loading the project in NWDS. Please answer me as soon as possible.
Thanks & Regards,
AniruddhaHi,
If you are using DC's then you can find the .Java files in the path
<project Name>\_comp\gen_wdp\packages\<Pacjage>\<ComponentName>\..
In the above path you can find the Java files of the controllers.
Thanks,
Raju Bonagiri -
How to read the HTML code from a webpage
Hi, I want to be able to read the HTML code of a web page
In order to extract some info from some pages.
How can I do that?
is it using cl_http_client ? I played with that class a bit, but wih no sucess to what I need...Hi RagnaRock,
You can use the following form, hope it helps you.
Regards,
Ozcan.
form get_data_from_url using iv_url type clike changing iv_data type string.
DATA: HTTP_CLIENT TYPE REF TO IF_HTTP_CLIENT .
clear iv_data.
CALL METHOD CL_HTTP_CLIENT=>CREATE_BY_URL
EXPORTING
URL = IV_URL
* PROXY_HOST = '10.1.1.1'
* PROXY_SERVICE = '1234'
* SSL_ID =
IMPORTING
CLIENT = HTTP_CLIENT
EXCEPTIONS
ARGUMENT_NOT_FOUND = 1
PLUGIN_NOT_ACTIVE = 2
INTERNAL_ERROR = 3
OTHERS = 4.
CHECK SY-SUBRC = 0.
CALL METHOD HTTP_CLIENT->SEND
EXCEPTIONS
HTTP_COMMUNICATION_FAILURE = 1
HTTP_INVALID_STATE = 2.
CHECK SY-SUBRC = 0.
CALL METHOD HTTP_CLIENT->RECEIVE
EXCEPTIONS
HTTP_COMMUNICATION_FAILURE = 1
HTTP_INVALID_STATE = 2
HTTP_PROCESSING_FAILED = 3.
CHECK SY-SUBRC = 0.
iv_data = HTTP_CLIENT->RESPONSE->GET_CDATA( ).
endform. "get_data_from_url
Edited by: Ozcan Gurdal on Aug 11, 2010 4:07 PM -
I can not download my adobe reader,the checking code always failed. W7 SYSTEM.
I can not download my adobe reader,the checking code always failed. MY COMPUTER IN W7 SYSTEM.
wanghuaqiong wrote:
I can not download my adobe reader,the checking code always failed. MY COMPUTER IN W7 SYSTEM.
Sorry, I don't understand the checking code part. Could you please give more details? -
Function Module or Class to write the source code of a class
Hi all,
Does anyone know a FM or a class using which I can read the source code of the methods of the class?
Thanks,
SükrüSure, something like this?
REPORT zrich_0002.
DATA includename TYPE program.
DATA _classname TYPE seoclsname VALUE 'CL_GUI_ALV_GRID'.
DATA isource TYPE STANDARD TABLE OF string WITH HEADER LINE.
includename = cl_oo_classname_service=>get_pubsec_name( _classname ).
READ REPORT includename INTO isource.
LOOP AT isource.
WRITE:/ isource.
ENDLOOP.
includename = cl_oo_classname_service=>get_prosec_name( _classname ).
READ REPORT includename INTO isource.
LOOP AT isource.
WRITE:/ isource.
ENDLOOP.
includename = cl_oo_classname_service=>get_prisec_name( _classname ).
READ REPORT includename INTO isource.
LOOP AT isource.
WRITE:/ isource.
ENDLOOP.
includename = cl_oo_classname_service=>get_ccimp_name( _classname ).
READ REPORT includename INTO isource.
LOOP AT isource.
WRITE:/ isource.
ENDLOOP.
includename = cl_oo_classname_service=>get_ccdef_name( _classname ).
READ REPORT includename INTO isource.
LOOP AT isource.
WRITE:/ isource.
ENDLOOP.
includename = cl_oo_classname_service=>get_ccmac_name( _classname ).
READ REPORT includename INTO isource.
LOOP AT isource.
WRITE:/ isource.
ENDLOOP.
Regards,
RIch Heilman -
I have problems when using the camera on my iPhone 4S (the same for my daughter with a iPhone4)
A veil around the blurred photo, a development impossible and completely unable to read the bar code or QR code. What to do?Sounds kind of stupid, but check to make sure that your iphone case cover is not blocking the edge of the camera lens. I had a silicone case on my 3S and when it got older, it started tot slip and the edges of my pictures were blurred.
-
My Ipad mini has frozen leaving Candy crush. I tried to put it off using the on/off button, now the screen is black with no function. I can hear Siri if I push the control. It is charged. Any ideas? I can't read the very small printed serial number on the back so can't use the Apple help as they require the serial number.
Hold down the sleep/wake button and the home button for ~10 seconds, or until the apple logo appears. This is called a reset.
HTH -
ABAP WD, Read the source code of a html page
Hi all,
I have the URL link of .jsp page and I want to get the source code generated by this page to extract some data for my web dynpro.
How do i solve this?
ThanksHi Antonio,
not sure if i understand the question properly.
You want to read html content of http site rendered via jsp.
You can use cl_http_client
to write a simple http client tool.
This tool opens the page. The html content is available to this class.
You can extract the content here.
See the attribute 'response' after making a call.
regards
Phil. -
How to read the html code from a specific page
is there a way that I can get the source code of a specific url and display that into a textarea with java?
Sure. One thing you could do would be to have a servlet that fetches html from a given url and stores the html in a jsp bean. You can then use the data in this bean to populate the text area.
-
How to read the RBG code of a pixel?
whats the way to find the RBG code of a pixel?
Hi Venkat,
You can still use the Function Module SEO_METHOD_GET_SOURCE with a small change in the parameter passing. It should be:
Paramaters:
MTDKEY-CLSNAME : <Implementaion Classname>
MTDKEY-CPDNAME: <Interfacename~methodname>
STATE : 'A' for active or 'I' for inactive
For example:
MTDKEY-CLSNAME :ZCL_IM_PLM_AUDIT_ALV_GRID
MTDKEY-CPDNAME: IF_EX_PLM_AUDIT_ALV_GRID~ON_USER_COMMAND
STATE: A
After executing you will get the source code in the form of string in the 'SOURCE' parameter.
Hope this helps you.
Regards,
Swarna Munukoti -
HP G6 recovery help - what if I can't read the COA code
My hard drive is in the process of crashing. I"m grabbing my files quickly. I'll likely pick up a SSD. I"m doing research on how to rebuild/recover.
I can't read the COA sticker on the bottom. Is there any way to get the code off my computer while it is still running? What are my options?Hi:
Read this info, and use ABR to back up the OEM VLK key info and then you should be able to restore it on the new installation.
http://dellwindowsreinstallationguide.com/a-clean-install-of-windows/microsoft-product-activation/th... -
Made changes on my home page and it looks great in the preview in browser, but when i upload to my server I get the attached error message. PLEASE HELP!!!
It's common for opening a locally exported website that contains Social widgets or other third party code to generate security errors because it will be loaded in the browser using file:// protocol. When a site is previewed from Muse (in Muse or in browser) or uploaded to a hosting provider it's served using http:// (or https://) protocol and the security errors don't occur.
The third party code that comes with using the Social widgets or any other widgets that rely on third party code and/or services is frequently not designed to work over file:// protocol. -
How to Read the contents (code )
Gurus,
Please advise me to get / view the code (DDL) of packages in Oracle9i ...??If you mean source code of FUNCTIONS, PROCEDURES and PACKAGES then look in this view
SQL> desc all_source
Name Null? Type
OWNER VARCHAR2(30)
NAME VARCHAR2(30)
TYPE VARCHAR2(12)
LINE NUMBER
TEXT VARCHAR2(4000)
Thanks -
Reading the color code of a bar
Hello, I'm saving a copy of a Microsoft Project document as an XML file in order to parse the XML file and extract project information. I successfully extracted most of the data I require but I can't find a way to get the color information of a particular
bar. Is it possible to get the color information as it is used to assign priority of a task?Hi,
Unfortunately for you, saving a MPP file as XML will loose the formating, meaning that the bars' color will not be included in the XML file.
But the priority field (as all fields and custom fields) will be included, allowing you managing task priority. Thus I'd suggest that you use this field to deal with priority instead of bar color.
Hope this helps,
Guillaume Rouyre, MBA, MCP, MCTS |
Maybe you are looking for
-
How do I share multiple contacts with another iPhone?
How do I share multiple contacts with another iPhone? Thanks in advance.
-
How to put a push button in the top of page of ALV
Hi at all, I need to put a push button in TOP OF PAGE . My code is below and i'd like to put a push button to do something. FORM top_of_page USING r_ddoc TYPE REF TO cl_dd_document. DATA: text TYPE sdydo_text_element. DATA: text_table TYPE sdydo_
-
Is it just me or is iTunes radio down?
Everytime try to click on a station it won't connect. My internet is working so I know I have an internet connection, and I did try to shut down & reboot. Still having that same problem. It was working fine last night.
-
How to get full URL in java?
Hi, I am working in a spring & hibernate project. For the AJAX request to bookmark, I used RSH (Really Simple Framework) framework. So, my URL changes for the AJAX request as http://localhost:8080/courses#/medicaltranscription/cardiology If I bookmar
-
Hi, Team, will you plz tell me how to use sapphone in workflow, means i want my work flow to call on xyz no and do the processing as per instructions given my receiver.